pytest: fix flake in test_emergencyrecover

Make sure bitcoind sees tx before we mine blocks!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-10-20 13:44:34 +10:30
committed by Christian Decker
parent 49ed0a4b9e
commit d2633d3e6d

View File

@@ -2341,7 +2341,7 @@ def test_emergencyrecover(node_factory, bitcoind):
l1.daemon.wait_for_log('peer_out WIRE_ERROR')
l2.daemon.wait_for_log('State changed from CHANNELD_NORMAL to AWAITING_UNILATERAL')
l2.bitcoin.generate_block(5)
bitcoind.generate_block(5, wait_for_mempool=1)
sync_blockheight(bitcoind, [l1, l2])
l1.daemon.wait_for_log(r'All outputs resolved.*')