pytest: Fix a falke in test_gossip_pruning

Fixes cause of https://github.com/ElementsProject/lightning/actions/runs/6518612194/job/17704479411
This commit is contained in:
Christian Decker 2023-10-17 14:23:06 +02:00
parent 5c12d14e11
commit 7deeff8404
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ def test_gossip_pruning(node_factory, bitcoind):
wait_for(lambda: [c['active'] for c in l3.rpc.listchannels()['channels']] == [True] * 4)
# Also check that it sends a redundant node_announcement.
wait_for(lambda: 'last_timestamp' in only_one(l2.rpc.listnodes(l1.info['id'])['nodes']))
ts1 = only_one(l2.rpc.listnodes(l1.info['id'])['nodes'])['last_timestamp']
wait_for(lambda: only_one(l2.rpc.listnodes(l1.info['id'])['nodes'])['last_timestamp'] != ts1)
assert only_one(l2.rpc.listnodes(l1.info['id'])['nodes'])['last_timestamp'] >= ts1 + 24