diff --git a/net/conn/conn_test.go b/net/conn/conn_test.go index beea9e43d..e49c9fdf5 100644 --- a/net/conn/conn_test.go +++ b/net/conn/conn_test.go @@ -125,7 +125,7 @@ func TestCloseLeak(t *testing.T) { // done! <-time.After(time.Microsecond * 100) - if runtime.NumGoroutine() > 10 { + 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 f2f12f4ab..41ed313e6 100644 --- a/net/conn/secure_conn_test.go +++ b/net/conn/secure_conn_test.go @@ -150,7 +150,7 @@ func TestSecureCloseLeak(t *testing.T) { // done! <-time.After(time.Microsecond * 100) - if runtime.NumGoroutine() > 10 { + if runtime.NumGoroutine() > 20 { // panic("uncomment me to debug") t.Fatal("leaking goroutines:", runtime.NumGoroutine()) }