mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
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:
parent
c7e6f197b0
commit
b5c2d7d47d
@ -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…
Reference in New Issue
Block a user