lntest+itest: add testBumpFeeExternalInput

This commit is contained in:
yyforyongyu committed 2025-05-26 19:41:24 +08:00
1 parent 4cef7b30fe
commit f97f60d3d4
3 files changed
+60

No files matched your search

+12
View File
@@ -254,6 +254,18 @@ func (h *HarnessRPC) BumpFee(
return resp
}
// BumpFeeAssertErr makes a RPC call to the node's WalletKitClient and asserts
// that an error is returned.
func (h *HarnessRPC) BumpFeeAssertErr(req *walletrpc.BumpFeeRequest) error {
ctxt, cancel := context.WithTimeout(h.runCtx, DefaultTimeout)
defer cancel()
_, err := h.WalletKit.BumpFee(ctxt, req)
require.Errorf(h, err, "%s: expect BumpFee to return an error", h.Name)
return err
}
// BumpForceCloseFee makes a RPC call to the node's WalletKitClient and asserts.
//
//nolint:ll