From 1d5f4c33739752f5ea0e2cea4f358d9268c6c8ce Mon Sep 17 00:00:00 2001 From: Derek Collison Date: Sat, 6 Feb 2016 07:41:37 -0800 Subject: [PATCH] For possible slow travis tests --- test/gosrv_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/gosrv_test.go b/test/gosrv_test.go index 592a9648..b98d5585 100644 --- a/test/gosrv_test.go +++ b/test/gosrv_test.go @@ -12,7 +12,7 @@ func TestSimpleGoServerShutdown(t *testing.T) { base := runtime.NumGoroutine() s := RunDefaultServer() s.Shutdown() - time.Sleep(10 * time.Millisecond) + time.Sleep(100 * time.Millisecond) delta := (runtime.NumGoroutine() - base) if delta > 1 { t.Fatalf("%d Go routines still exist post Shutdown()", delta) @@ -27,7 +27,7 @@ func TestGoServerShutdownWithClients(t *testing.T) { } s.Shutdown() // Wait longer for client connections - time.Sleep(500 * time.Millisecond) + time.Sleep(1 * time.Second) delta := (runtime.NumGoroutine() - base) // There may be some finalizers or IO, but in general more than // 2 as a delta represents a problem.