Skip to content

Commit f08e7fe

Browse files
committed
lnwallet/chancloser: fix flake in TestRbfChannelFlushingTransitions/early_offer
In this commit, we fix a flake in the `TestRbfChannelFlushingTransitions/early_offer` test. The fix is simple: this is actually an "iteration", as we have a self transition to the ChannelNegotiation state first. We also don't need to send the remoteOffer, so we set `sendInit` to false. The offer still needs to be passed in to ensure that the assertions work however.
1 parent a307280 commit f08e7fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lnwallet/chancloser/rbf_coop_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,8 +1353,8 @@ func TestRbfChannelFlushingTransitions(t *testing.T) {
13531353
// offer and send our sig).
13541354
closeHarness.chanCloser.SendEvent(ctx, &flushEvent)
13551355
closeHarness.assertSingleRemoteRbfIteration(
1356-
remoteOffer, absoluteFee, absoluteFee, sequence, false,
1357-
true,
1356+
remoteOffer, absoluteFee, absoluteFee, sequence, true,
1357+
false,
13581358
)
13591359
})
13601360

0 commit comments

Comments
 (0)