diff --git a/net/conn/conn_test.go b/net/conn/conn_test.go index 889b67a2cec..803b517a721 100644 --- a/net/conn/conn_test.go +++ b/net/conn/conn_test.go @@ -133,7 +133,7 @@ func TestCloseLeak(t *testing.T) { wg.Wait() // done! - <-time.After(time.Microsecond * 100) + <-time.After(time.Millisecond * 150) if runtime.NumGoroutine() > 20 { // panic("uncomment me to debug") t.Fatal("leaking goroutines:", runtime.NumGoroutine()) diff --git a/net/conn/secure_conn_test.go b/net/conn/secure_conn_test.go index be358069364..f7567148009 100644 --- a/net/conn/secure_conn_test.go +++ b/net/conn/secure_conn_test.go @@ -157,7 +157,7 @@ func TestSecureCloseLeak(t *testing.T) { wg.Wait() // done! - <-time.After(time.Microsecond * 100) + <-time.After(time.Millisecond * 150) if runtime.NumGoroutine() > 20 { // panic("uncomment me to debug") t.Fatal("leaking goroutines:", runtime.NumGoroutine())