itest+lntest: add itest for Quiesce RPC method
This commit is contained in:
3 files changed
+67
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user