mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 10:46:58 +01:00
pytest: Stabilize test_gossip_persistence
We weren't waiting for the `dev_fail` transaction to hit the mempool, throwing the results off.
This commit is contained in:
parent
ae40c10bcb
commit
03449e3cf0
1 changed files with 3 additions and 2 deletions
|
@ -426,8 +426,9 @@ def test_gossip_persistence(node_factory, bitcoind):
|
||||||
# Now spend the funding tx, generate a block and see others deleting the
|
# Now spend the funding tx, generate a block and see others deleting the
|
||||||
# channel from their network view
|
# channel from their network view
|
||||||
l1.rpc.dev_fail(l2.info['id'])
|
l1.rpc.dev_fail(l2.info['id'])
|
||||||
time.sleep(1)
|
|
||||||
bitcoind.generate_block(1)
|
# We need to wait for the unilateral close to hit the mempool
|
||||||
|
bitcoind.generate_block(1, wait_for_mempool=1)
|
||||||
|
|
||||||
wait_for(lambda: active(l1) == [scid23, scid23])
|
wait_for(lambda: active(l1) == [scid23, scid23])
|
||||||
wait_for(lambda: active(l2) == [scid23, scid23])
|
wait_for(lambda: active(l2) == [scid23, scid23])
|
||||||
|
|
Loading…
Add table
Reference in a new issue