mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
pytest: fix flake in test_misc.py::test_funding_reorg_* xxremote_lags
If l2 doesn't have the funding locked in, the rest of the test fails (we got a timeout on `wait_for(lambda: [c['active'] for c in l2.rpc.listchannels('103x1x0')['channels']] == [False, False])`) Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
11d24dea9b
commit
2910bb0235
@ -1177,6 +1177,7 @@ def test_funding_reorg_private(node_factory, bitcoind):
|
||||
== ['{}_AWAITING_LOCKIN:Funding needs 1 more confirmations for lockin.'.format(daemon)])
|
||||
bitcoind.generate_block(1) # height 107
|
||||
l1.wait_channel_active('106x1x0')
|
||||
l2.wait_channel_active('106x1x0')
|
||||
l1.stop()
|
||||
|
||||
# Create a fork that changes short_channel_id from 106x1x0 to 108x1x0
|
||||
@ -1212,6 +1213,7 @@ def test_funding_reorg_remote_lags(node_factory, bitcoind):
|
||||
l1.rpc.fundchannel(l2.info['id'], "all")
|
||||
bitcoind.generate_block(5) # heights 103 - 107
|
||||
l1.wait_channel_active('103x1x0')
|
||||
l2.wait_channel_active('103x1x0')
|
||||
|
||||
# Make l2 temporary blind for blocks > 107
|
||||
def no_more_blocks(req):
|
||||
|
Loading…
Reference in New Issue
Block a user