itest+lntest: add itest for Quiesce RPC method

This commit is contained in:
Keagan McClelland committed 2024-11-26 13:52:51 -07:00
1 parent 7255b7357c
commit 77fd8c6a21
3 files changed
+67

No files matched your search

+15
View File
@@ -5,6 +5,7 @@ import (
"strings"
"github.com/lightningnetwork/lnd/lnrpc"
"github.com/lightningnetwork/lnd/lnrpc/devrpc"
"github.com/stretchr/testify/require"
)
@@ -730,3 +731,17 @@ func (h *HarnessRPC) LookupHtlcResolutionAssertErr(
return err
}
// Quiesce makes an RPC call to the node's Quiesce method and returns the
// response.
func (h *HarnessRPC) Quiesce(
req *devrpc.QuiescenceRequest) *devrpc.QuiescenceResponse {
ctx, cancel := context.WithTimeout(h.runCtx, DefaultTimeout)
defer cancel()
res, err := h.Dev.Quiesce(ctx, req)
h.NoError(err, "Quiesce returned an error")
return res
}