mirror of
https://github.com/golang/go
synced 2024-11-18 13:44:48 -07:00
a1e7fb4eed
On a slow or distracted machine, 0.1s is sometimes not long enough for a non-blocking function call to complete. This causes rare test flakes. They can be easily reproduced by reducing the wait time to (say) 100ns. For non-blocking functions, increase the window from 100ms to 10s. Using different windows for block and non-blocking functions, allows us to reduce the time for blocking functions. The risk here is false negatives, but that risk is low; this test is run repeatedly on many fast machines, for which 10ms is ample time. This reduces the time required to run the test by a factor of 10, from ~1s to ~100ms. Fixes #20299 Change-Id: Ice9a641a66c6c101d738a2ebe1bcb144ae3c9916 Reviewed-on: https://go-review.googlesource.com/47812 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> |
||
---|---|---|
.. | ||
doubleselect.go | ||
fifo.go | ||
goroutines.go | ||
nonblock.go | ||
perm.go | ||
powser1.go | ||
powser2.go | ||
select2.go | ||
select3.go | ||
select4.go | ||
select5.go | ||
select6.go | ||
select7.go | ||
select.go | ||
sendstmt.go | ||
sieve1.go | ||
sieve2.go | ||
zerosize.go |