itest: add an itest for the removal of a tx.

This commit is contained in:
ziggie committed 2023-12-12 14:18:16 +01:00
1 parent 227ac770af
commit 1ca3732f25
3 files changed
+122 -1

No files matched your search

+16
View File
@@ -210,6 +210,22 @@ func (h *HarnessRPC) GetTransaction(
return resp
}
// RemoveTransaction makes an RPC call to the node's WalletKitClient and
// asserts.
//
//nolint:lll
func (h *HarnessRPC) RemoveTransaction(
req *walletrpc.GetTransactionRequest) *walletrpc.RemoveTransactionResponse {
ctxt, cancel := context.WithTimeout(h.runCtx, DefaultTimeout)
defer cancel()
resp, err := h.WalletKit.RemoveTransaction(ctxt, req)
h.NoError(err, "RemoveTransaction")
return resp
}
// BumpFee makes a RPC call to the node's WalletKitClient and asserts.
func (h *HarnessRPC) BumpFee(
req *walletrpc.BumpFeeRequest) *walletrpc.BumpFeeResponse {