From d2633d3e6d56bf4594910cffad5b05fe583f72e5 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 20 Oct 2022 13:44:34 +1030 Subject: [PATCH] pytest: fix flake in test_emergencyrecover Make sure bitcoind sees tx before we mine blocks! Signed-off-by: Rusty Russell --- tests/test_misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_misc.py b/tests/test_misc.py index 0bb9bc421..9fff772fa 100644 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -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.*')