mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
pytest: Stabilize test_forward_stats
This commit is contained in:
parent
da2e956538
commit
62cb1c3fbc
1 changed files with 3 additions and 1 deletions
|
@ -1271,8 +1271,10 @@ def test_forward_stats(node_factory, bitcoind):
|
||||||
l1, l2, l3, l4, l5 = node_factory.get_nodes(5, opts=[{}] * 4 + [{'may_fail': True}])
|
l1, l2, l3, l4, l5 = node_factory.get_nodes(5, opts=[{}] * 4 + [{'may_fail': True}])
|
||||||
node_factory.join_nodes([l1, l2, l3], wait_for_announce=False)
|
node_factory.join_nodes([l1, l2, l3], wait_for_announce=False)
|
||||||
l2.openchannel(l4, 10**6, wait_for_announce=False)
|
l2.openchannel(l4, 10**6, wait_for_announce=False)
|
||||||
l2.openchannel(l5, 10**6, wait_for_announce=True)
|
l2.openchannel(l5, 10**6, wait_for_announce=False)
|
||||||
|
|
||||||
|
bitcoind.generate_block(1)
|
||||||
|
sync_blockheight(bitcoind, [l1, l2, l3, l4, l5])
|
||||||
bitcoind.generate_block(5)
|
bitcoind.generate_block(5)
|
||||||
|
|
||||||
wait_for(lambda: len(l1.rpc.listchannels()['channels']) == 8)
|
wait_for(lambda: len(l1.rpc.listchannels()['channels']) == 8)
|
||||||
|
|
Loading…
Add table
Reference in a new issue