Browse Source

pytest: Gossip subdaemon had a flaky test

Whenever we were checking for the status before the daemon was
initialized the test would fail. Now just waiting for the state
transition.
ppa-0.6.1
Christian Decker 8 years ago
parent
commit
b5c2d7d47d
  1. 3
      tests/test_lightningd.py

3
tests/test_lightningd.py

@ -120,6 +120,9 @@ class LightningDTests(BaseLightningDTests):
p1 = l1.rpc.getpeer(l2.info['id'])
p2 = l2.rpc.getpeer(l1.info['id'])
l1.daemon.wait_for_log('WIRE_GOSSIPSTATUS_PEER_READY')
l2.daemon.wait_for_log('WIRE_GOSSIPSTATUS_PEER_READY')
assert p1['condition'] == 'Exchanging gossip'
assert p2['condition'] == 'Exchanging gossip'

Loading…
Cancel
Save