提交 565f9b88 作者: Juan Batiz-Benet

leaking goroutine ++ in travis

for some reason travis has more goroutines running by def.
上级 3d2ba374
......@@ -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())
}
......
......@@ -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())
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论