Skip to content

Commit

Permalink
chore: fix test failing intermittently (#1679)
Browse files Browse the repository at this point in the history
  • Loading branch information
alrevuelta authored Apr 17, 2023
1 parent 1a885b9 commit 8d213e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/v2/waku_relay/test_wakunode_relay.nim
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ suite "WakuNode - Relay":
await nodes[i].publish(spamProtectedTopic, msg)

# Wait for gossip
await sleepAsync(500.millis)
await sleepAsync(1.seconds)

# 50 messages were sent to 5 peers = 250 messages
check:
Expand Down Expand Up @@ -379,7 +379,7 @@ suite "WakuNode - Relay":
await nodes[i].publish(spamProtectedTopic, unsignedMessage)

# Wait for gossip
await sleepAsync(500.millis)
await sleepAsync(1.seconds)

# Since we have a full mesh with 5 nodes and each one publishes 50+50 msgs
# there are 500 messages being sent.
Expand Down Expand Up @@ -462,7 +462,7 @@ suite "WakuNode - Relay":
await nodes[0].publish(spamProtectedTopic, msg)

# Wait for gossip
await sleepAsync(500.millis)
await sleepAsync(1.seconds)

# only 100 messages are received (50 + 50) which demonstrate
# nodes[1] doest gossip invalid messages.
Expand Down

0 comments on commit 8d213e8

Please sign in to comment.