mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
pytest: fix race in test_block_backfill.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
11833192a1
commit
686df235a2
@ -74,8 +74,8 @@ def test_block_backfill(node_factory, bitcoind):
|
|||||||
assert(31337 in [r['satoshis'] for r in l3.db_query("SELECT satoshis FROM utxoset")])
|
assert(31337 in [r['satoshis'] for r in l3.db_query("SELECT satoshis FROM utxoset")])
|
||||||
|
|
||||||
# Now close the channel and make sure `l3` cleans up correctly:
|
# Now close the channel and make sure `l3` cleans up correctly:
|
||||||
l1.rpc.close(l2.info['id'])
|
txid = l1.rpc.close(l2.info['id'])['txid']
|
||||||
bitcoind.generate_block(1)
|
bitcoind.generate_block(1, wait_for_mempool=txid)
|
||||||
wait_for(lambda: len(l3.rpc.listchannels()['channels']) == 0)
|
wait_for(lambda: len(l3.rpc.listchannels()['channels']) == 0)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user