mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 11:59:16 +01:00
pytest: fix test_channel_lease_unilat_closes flake
We fail waiting for 'Resolved OUR_UNILATERAL/DELAYED_OUTPUT_TO_US by our proposal OUR_DELAYED_RETURN_TO_WALLET' because we close *two* channels, but only wait for one transaction before mining a block. This means we might only have one, and we immediately mine the next wait_for_mempool=1, so the OUR_DELAYED_RETURN_TO_WALLET isn't mined. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
94e3e2f704
commit
2b07d0b0e6
1 changed files with 1 additions and 1 deletions
|
@ -910,7 +910,7 @@ def test_channel_lease_unilat_closes(node_factory, bitcoind):
|
|||
l3.rpc.close(l2.info['id'], 1, force_lease_closed=True)
|
||||
|
||||
# Wait til to_self_delay expires, l1 should claim to_local back
|
||||
bitcoind.generate_block(10, wait_for_mempool=1)
|
||||
bitcoind.generate_block(10, wait_for_mempool=2)
|
||||
l1.daemon.wait_for_log('Broadcasting OUR_DELAYED_RETURN_TO_WALLET')
|
||||
bitcoind.generate_block(1, wait_for_mempool=1)
|
||||
l1.daemon.wait_for_log('Resolved OUR_UNILATERAL/DELAYED_OUTPUT_TO_US by our proposal OUR_DELAYED_RETURN_TO_WALLET')
|
||||
|
|
Loading…
Add table
Reference in a new issue