Codebase list golang-github-go-kit-kit / 914b91c
Fix flaky Travis test? Peter Bourgon 8 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
8888 // Travis is annoying
8989 by(t, time.Second,
9090 func() bool { return buf.String() != "" },
91 func() { runtime.Gosched(); time.Sleep(time.Millisecond) },
91 func() { ch <- time.Now(); runtime.Gosched(); time.Sleep(5 * time.Millisecond) },
9292 "buffer never got write+flush",
9393 )
9494