From 2910bb0235e771b2d9236f18d7599434362c7c20 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sun, 13 Jun 2021 13:54:53 +0930 Subject: [PATCH] pytest: fix flake in test_misc.py::test_funding_reorg_* xxremote_lags If l2 doesn't have the funding locked in, the rest of the test fails (we got a timeout on `wait_for(lambda: [c['active'] for c in l2.rpc.listchannels('103x1x0')['channels']] == [False, False])`) Signed-off-by: Rusty Russell --- tests/test_misc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_misc.py b/tests/test_misc.py index c1dee2b55..28c915d87 100644 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -1177,6 +1177,7 @@ def test_funding_reorg_private(node_factory, bitcoind): == ['{}_AWAITING_LOCKIN:Funding needs 1 more confirmations for lockin.'.format(daemon)]) bitcoind.generate_block(1) # height 107 l1.wait_channel_active('106x1x0') + l2.wait_channel_active('106x1x0') l1.stop() # Create a fork that changes short_channel_id from 106x1x0 to 108x1x0 @@ -1212,6 +1213,7 @@ def test_funding_reorg_remote_lags(node_factory, bitcoind): l1.rpc.fundchannel(l2.info['id'], "all") bitcoind.generate_block(5) # heights 103 - 107 l1.wait_channel_active('103x1x0') + l2.wait_channel_active('103x1x0') # Make l2 temporary blind for blocks > 107 def no_more_blocks(req):