Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Commit

Permalink
fix(messagequeue): test correction
Browse files Browse the repository at this point in the history
timing on test was failure prone, corrected
  • Loading branch information
hannahhoward committed Apr 10, 2019
1 parent 256e680 commit 13e0a4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions messagequeue/messagequeue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ func TestWantlistRebroadcast(t *testing.T) {
}

messageQueue.SetRebroadcastInterval(5 * time.Millisecond)
messages = collectMessages(ctx, t, messagesSent, 10*time.Millisecond)
messages = collectMessages(ctx, t, messagesSent, 8*time.Millisecond)
if len(messages) != 1 {
t.Fatal("wrong number of messages were sent for initial wants")
t.Fatal("wrong number of messages were rebroadcast")
}

firstMessage := messages[0]
Expand Down

0 comments on commit 13e0a4d

Please sign in to comment.