For possible slow travis tests

This commit is contained in:
Derek Collison
2016-02-06 07:41:37 -08:00
parent a8f622269b
commit 1d5f4c3373

View File

@@ -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.