@cryptotaxi247 / kubo / commits / 7c4596a66

more lenient time

need to switch away from timing tests. its very annoying. Should use proper go sync, as in https://www.youtube.com/watch?v=ndmB0bj7eyw

Juan Batiz-Benet committed Oct 19, 2014 at 07:32 UTC 7c4596a6617d76ebc0468b9a79af46d417e6914c
2 files changed +2 -2
net/conn/conn_test.go
+1 -1
@@ -133,7 +133,7 @@ func TestCloseLeak(t *testing.T) {
133 wg.Wait()
134 // done!
135
136 - <-time.After(time.Microsecond * 100)
136 + <-time.After(time.Millisecond * 150)
137 if runtime.NumGoroutine() > 20 {
138 // panic("uncomment me to debug")
139 t.Fatal("leaking goroutines:", runtime.NumGoroutine())
net/conn/secure_conn_test.go
+1 -1
@@ -157,7 +157,7 @@ func TestSecureCloseLeak(t *testing.T) {
157 wg.Wait()
158 // done!
159
160 - <-time.After(time.Microsecond * 100)
160 + <-time.After(time.Millisecond * 150)
161 if runtime.NumGoroutine() > 20 {
162 // panic("uncomment me to debug")
163 t.Fatal("leaking goroutines:", runtime.NumGoroutine())