From 92bd3a35873b71eaba38f491c08a3fba63c5c7af Mon Sep 17 00:00:00 2001 From: lisa neigut Date: Mon, 17 Jun 2019 16:58:27 -0500 Subject: [PATCH] connect test: use wait_for_log in test_funding_external_wallet test_funding_external_wallet is flakey because we don't wait for the channel state to update before asserting that it's changed. --- tests/test_connection.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_connection.py b/tests/test_connection.py index 7e855eb9d..1c0995ce1 100644 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -896,11 +896,10 @@ def test_funding_external_wallet(node_factory, bitcoind): bitcoind.generate_block(1) l1.daemon.wait_for_log(r'Funding tx {} depth 1 of 1'.format(txid)) - l1.daemon.wait_for_log(r'State changed from CHANNELD_AWAITING_LOCKIN to CHANNELD_NORMAL') for node in [l1, l2]: + node.daemon.wait_for_log(r'State changed from CHANNELD_AWAITING_LOCKIN to CHANNELD_NORMAL') channel = node.rpc.listpeers()['peers'][0]['channels'][0] - assert 'CHANNELD_NORMAL' == channel['state'] assert amount * 1000 == channel['msatoshi_total']