Skip to content

Commit

Permalink
pytest: fix flake in test_gossip_force_broadcast_channel_msgs
Browse files Browse the repository at this point in the history
Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell committed Nov 25, 2024
1 parent 7cdf45b commit 5701123
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/test_gossip.py
Original file line number Diff line number Diff line change
Expand Up @@ -2327,9 +2327,14 @@ def test_gossip_force_broadcast_channel_msgs(node_factory, bitcoind):
del tally['query_channel_range']
del tally['ping']
del tally['gossip_filter']
assert tally == {'channel_announce': 1,
'channel_update': 3,
'node_announce': 1}

# We can actually get *4* channel_updates, if timing is right. Allow it.
assert tally in ({'channel_announce': 1,
'channel_update': 3,
'node_announce': 1},
{'channel_announce': 1,
'channel_update': 4,
'node_announce': 1})


def test_gossip_seeker_autoconnect(node_factory):
Expand Down

0 comments on commit 5701123

Please sign in to comment.