Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
wait longer for connection establishment in TestNotifications
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Jul 27, 2021
1 parent 7682965 commit 4b55a57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swarm_notif_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestNotifications(t *testing.T) {
}
}()

timeout := 5 * time.Second
const timeout = 5 * time.Second

// signup notifs
for i, swarm := range swarms {
Expand All @@ -50,7 +50,7 @@ func TestNotifications(t *testing.T) {

connectSwarms(t, ctx, swarms)

<-time.After(time.Millisecond)
time.Sleep(50 * time.Millisecond)
// should've gotten 5 by now.

// test everyone got the correct connection opened calls
Expand Down

0 comments on commit 4b55a57

Please sign in to comment.