mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
test: fix flaky test_gossip_notices_close with wait_for_mempool
This commit is contained in:
parent
9e511cbf3e
commit
42d6bf564c
@ -961,9 +961,9 @@ def test_gossip_notices_close(node_factory, bitcoind):
|
||||
channel_update = l1.daemon.is_in_log(r'\[IN\] 0102').split(' ')[-1][:-1]
|
||||
node_announcement = l1.daemon.is_in_log(r'\[IN\] 0101').split(' ')[-1][:-1]
|
||||
|
||||
l2.rpc.close(l3.info['id'])
|
||||
txid = l2.rpc.close(l3.info['id'])['txid']
|
||||
wait_for(lambda: only_one(l2.rpc.listpeers(l3.info['id'])['peers'])['channels'][0]['state'] == 'CLOSINGD_COMPLETE')
|
||||
bitcoind.generate_block(1)
|
||||
bitcoind.generate_block(1, txid)
|
||||
|
||||
wait_for(lambda: l1.rpc.listchannels()['channels'] == [])
|
||||
wait_for(lambda: l1.rpc.listnodes()['nodes'] == [])
|
||||
|
Loading…
Reference in New Issue
Block a user