Skip to content

Commit

Permalink
pytest: Fix a falke in test_gossip_pruning
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Oct 17, 2023
1 parent 15c23e3 commit e634506
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_gossip.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e634506

Please sign in to comment.