leaking goroutine ++ in travis

for some reason travis has more goroutines running by def.
This commit is contained in:
Juan Batiz-Benet 2014-10-19 06:40:41 -07:00
parent 3d2ba37445
commit 565f9b8879
2 changed files with 2 additions and 2 deletions

View File

@ -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())
}

View File

@ -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())
}