Skip to content

Commit b886e7e

Browse files
itest: assert tx hex is set in BumpFeeResponse
1 parent a291062 commit b886e7e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

itest/lnd_channel_force_close_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,13 @@ func testCommitmentTransactionDeadline(ht *lntest.HarnessTest) {
147147
// The waiting close channel closing tx hex should be set and
148148
// be valid.
149149
require.NotEmpty(ht, waitingClose.ClosingTxHex)
150+
150151
rawTxBytes, err := hex.DecodeString(waitingClose.ClosingTxHex)
151152
require.NoError(
152153
ht, err,
153154
"waiting close channel closingTxHex invalid hex",
154155
)
156+
155157
rawTx := &wire.MsgTx{}
156158
err = rawTx.Deserialize(bytes.NewReader(rawTxBytes))
157159
require.NoError(

itest/lnd_onchain_test.go

+7-2
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,14 @@ func runCPFP(ht *lntest.HarnessTest, alice, bob *node.HarnessNode) {
278278
Outpoint: op,
279279
// We use a higher fee rate than the default max and expect the
280280
// sweeper to cap the fee rate at the max value.
281-
SatPerVbyte: maxFeeRate * 2,
281+
SatPerVbyte: maxFeeRate * 2,
282+
IncludeRawTx: true,
282283
}
283-
bob.RPC.BumpFee(bumpFeeReq)
284+
285+
go func() {
286+
bumpFeeResp := bob.RPC.BumpFee(bumpFeeReq)
287+
require.NotEmpty(ht, bumpFeeResp.SweepTxHex)
288+
}()
284289

285290
// We should now expect to see two transactions within the mempool, a
286291
// parent and its child.

0 commit comments

Comments
 (0)