Browse Source

pytest: Increate timeout when waiting for gossip

Signed-off-by: Christian Decker <decker.christian@gmail.com>
ppa-0.6.1
Christian Decker 7 years ago
committed by Rusty Russell
parent
commit
81551b2e60
  1. 3
      tests/test_lightningd.py

3
tests/test_lightningd.py

@ -1677,7 +1677,8 @@ class LightningDTests(BaseLightningDTests):
needle = "Received channel_update for channel" needle = "Received channel_update for channel"
l1.daemon.wait_for_log(needle) l1.daemon.wait_for_log(needle)
l2.daemon.wait_for_log(needle) l2.daemon.wait_for_log(needle)
wait_for(lambda: len(l1.getactivechannels()) == 2) # Need to increase timeout, intervals cannot be shortened with DEVELOPER=0
wait_for(lambda: len(l1.getactivechannels()) == 2, timeout=60)
nodes = l1.rpc.listnodes()['nodes'] nodes = l1.rpc.listnodes()['nodes']
assert set([n['nodeid'] for n in nodes]) == set([l1.info['id'], l2.info['id']]) assert set([n['nodeid'] for n in nodes]) == set([l1.info['id'], l2.info['id']])

Loading…
Cancel
Save