From 4b55a57b48af002a34f89bde4bcce5d96564cabe Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Tue, 27 Jul 2021 12:38:27 +0200 Subject: [PATCH] wait longer for connection establishment in TestNotifications --- swarm_notif_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swarm_notif_test.go b/swarm_notif_test.go index 8537363a..33836172 100644 --- a/swarm_notif_test.go +++ b/swarm_notif_test.go @@ -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 { @@ -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