test: fix flakyness of funding_reorg_private openchannel_hook

This commit is contained in:
Michael Schmoock 2019-05-31 16:13:04 +02:00 committed by Christian Decker
parent 7961a815aa
commit 107381aca2
2 changed files with 2 additions and 0 deletions

View File

@ -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')

View File

@ -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'])