From 107381aca2d3e48d38e9f554b829a01364c6fed6 Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Fri, 31 May 2019 16:13:04 +0200 Subject: [PATCH] test: fix flakyness of funding_reorg_private openchannel_hook --- tests/test_misc.py | 1 + tests/test_plugin.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/test_misc.py b/tests/test_misc.py index 0c7a5a9af..b08329559 100644 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -942,6 +942,7 @@ def test_funding_reorg_private(node_factory, bitcoind): wait_for(lambda: [c['active'] for c in l2.rpc.listchannels('108x1x0')['channels']] == [True, True]) l1.rpc.close(l2.info['id']) # to ignore `Bad gossip order` error in killall + wait_for(lambda: len(bitcoind.rpc.getrawmempool()) > 0) bitcoind.generate_block(1) l1.daemon.wait_for_log(r'Deleting channel') l2.daemon.wait_for_log(r'Deleting channel') diff --git a/tests/test_plugin.py b/tests/test_plugin.py index 7eef9e3fd..8d1faf1cf 100644 --- a/tests/test_plugin.py +++ b/tests/test_plugin.py @@ -303,6 +303,7 @@ def test_openchannel_hook(node_factory, bitcoind): # Close it. l1.rpc.close(l2.info['id']) + wait_for(lambda: len(bitcoind.rpc.getrawmempool()) > 0) bitcoind.generate_block(1) wait_for(lambda: [c['state'] for c in only_one(l1.rpc.listpeers(l2.info['id'])['peers'])['channels']] == ['ONCHAIN'])