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.
This commit is contained in:
Christian Decker 2017-02-08 16:56:39 +01:00
parent c7e6f197b0
commit b5c2d7d47d

View File

@ -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'