Skip to content

Commit 0a4c030

Browse files
committed
bkpr-test: maybe fix race in test_bookkeeping_closing_trimmed_htlcs
test_bookkeeping_closing_trimmed_htlcs fails to find 'all outputs resolved' occassionally, seems like it's because the OUR_DELAYED_TO_WALLET doesn't make it into the mempool before we start mining blocks? So here make sure there's something in the mempool before before we start making new blocks.
1 parent c83b9a2 commit 0a4c030

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_bookkeeper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def test_bookkeeping_closing_trimmed_htlcs(node_factory, bitcoind, executor):
4646
bitcoind.generate_block(5)
4747
sync_blockheight(bitcoind, [l1])
4848
l1.daemon.wait_for_log('Broadcasting OUR_DELAYED_RETURN_TO_WALLET')
49-
bitcoind.generate_block(20)
49+
bitcoind.generate_block(20, wait_for_mempool=1)
5050
sync_blockheight(bitcoind, [l1])
5151
l1.daemon.wait_for_log(r'All outputs resolved.*')
5252

0 commit comments

Comments
 (0)