mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 18:57:06 +01:00
pytest: Attempting to fix the flaky gossip test
This seems to happen when we manage to check between the channel_announcement and the channel_update being processed. Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
parent
25725c0aa4
commit
547d3f0a0b
1 changed files with 2 additions and 2 deletions
|
@ -1285,7 +1285,7 @@ class LightningDTests(BaseLightningDTests):
|
||||||
|
|
||||||
channels = l1.rpc.getchannels()['channels']
|
channels = l1.rpc.getchannels()['channels']
|
||||||
assert len(channels) == 2
|
assert len(channels) == 2
|
||||||
assert [c['active'] for c in channels] == [True, True]
|
wait_for(lambda: [c['active'] for c in channels] == [True, True])
|
||||||
|
|
||||||
def ping_tests(self, l1, l2):
|
def ping_tests(self, l1, l2):
|
||||||
# 0-byte pong gives just type + length field.
|
# 0-byte pong gives just type + length field.
|
||||||
|
@ -2314,6 +2314,6 @@ class LightningDTests(BaseLightningDTests):
|
||||||
bitcoind.rpc.generate(99)
|
bitcoind.rpc.generate(99)
|
||||||
l1.daemon.wait_for_log('onchaind complete, forgetting peer')
|
l1.daemon.wait_for_log('onchaind complete, forgetting peer')
|
||||||
l2.daemon.wait_for_log('onchaind complete, forgetting peer')
|
l2.daemon.wait_for_log('onchaind complete, forgetting peer')
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main(verbosity=2)
|
unittest.main(verbosity=2)
|
||||||
|
|
Loading…
Add table
Reference in a new issue