From 565f9b8879018e5a01a7e39ed213859df2d7d7e2 Mon Sep 17 00:00:00 2001 From: Juan Batiz-Benet Date: Sun, 19 Oct 2014 06:40:41 -0700 Subject: [PATCH] leaking goroutine ++ in travis for some reason travis has more goroutines running by def. --- net/conn/conn_test.go | 2 +- net/conn/secure_conn_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()) }