From f04e44fad7786d9cfaef4cd7d2dbe408abb80293 Mon Sep 17 00:00:00 2001 From: Derek Collison Date: Mon, 30 Nov 2015 19:51:40 -0800 Subject: [PATCH] Allow more time for goroutines to exit --- test/gosrv_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/gosrv_test.go b/test/gosrv_test.go index 3be9d918..592a9648 100644 --- a/test/gosrv_test.go +++ b/test/gosrv_test.go @@ -27,7 +27,7 @@ func TestGoServerShutdownWithClients(t *testing.T) { } s.Shutdown() // Wait longer for client connections - time.Sleep(100 * time.Millisecond) + time.Sleep(500 * time.Millisecond) delta := (runtime.NumGoroutine() - base) // There may be some finalizers or IO, but in general more than // 2 as a delta represents a problem.