From 8cef2c17adabf652fbc3b2688d4b61bd89aae597 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 8 Apr 2021 10:28:50 +0930 Subject: [PATCH] pytest: fix flake in test_v2_open_sigs_restart_while_dead We didn't wait for the sendtx to complete before shutting down, and hence timed out: ``` l2.daemon.wait_for_log('Broadcasting funding tx') l1.stop() l2.stop() bitcoind.generate_block(6) l1.restart() l2.restart() # Make sure we're ok. > l2.daemon.wait_for_log(r'to CHANNELD_NORMAL') ``` Signed-off-by: Rusty Russell --- tests/test_opening.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_opening.py b/tests/test_opening.py index f0a515380..76e8033f2 100644 --- a/tests/test_opening.py +++ b/tests/test_opening.py @@ -187,6 +187,7 @@ def test_v2_open_sigs_restart_while_dead(node_factory, bitcoind): l1.rpc.openchannel_signed(chan_id, psbt) l2.daemon.wait_for_log('Broadcasting funding tx') + l2.daemon.wait_for_log('sendrawtx exit 0') l1.stop() l2.stop()