Skip to content

Commit 1dc6630

Browse files
committed
itest: fix test flake in testHtlcTimeoutResolverExtractPreimageRemote
1 parent 3f2675f commit 1dc6630

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

itest/lnd_multi-hop_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1936,6 +1936,11 @@ func runExtraPreimageFromRemoteCommit(ht *lntest.HarnessTest,
19361936
// notice the force close from Carol.
19371937
require.NoError(ht, restartBob())
19381938

1939+
// For anchor channels, Bob should sweep his anchor output.
1940+
if lntest.CommitTypeHasAnchors(c) {
1941+
ht.Miner.AssertNumTxsInMempool(1)
1942+
}
1943+
19391944
// Get the current height to compute number of blocks to mine to
19401945
// trigger the htlc timeout resolver from Bob.
19411946
_, height := ht.Miner.GetBestBlock()

0 commit comments

Comments
 (0)