mirror of
https://github.com/golang/go
synced 2024-11-16 22:44:49 -07:00
4ffa2f1c23
TestTicker is sensitive to overloaded or slow systems, where a 20ms ticker running for 10 ticks has a total run time out of the range [110ms, 290ms]. To counter this flakiness, it tries five times to get a successful result. This is insufficient--an overloaded test machine can introduce more than 100ms of delay across the test. Reduce the five attempts to two, but use a 1s ticker for 8 ticks in the second attempt. Updates #46474. Updates #35692. Change-Id: Ibd5187b00ccceeb981b652f2af9a1c3766357b78 Reviewed-on: https://go-review.googlesource.com/c/go/+/339892 Trust: Damien Neil <dneil@google.com> Run-TryBot: Damien Neil <dneil@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> |
||
---|---|---|
.. | ||
testdata | ||
tzdata | ||
embed.go | ||
example_test.go | ||
export_android_test.go | ||
export_test.go | ||
export_windows_test.go | ||
format_test.go | ||
format.go | ||
genzabbrs.go | ||
internal_test.go | ||
mono_test.go | ||
sleep_test.go | ||
sleep.go | ||
sys_plan9.go | ||
sys_unix.go | ||
sys_windows.go | ||
tick_test.go | ||
tick.go | ||
time_test.go | ||
time.go | ||
tzdata_test.go | ||
zoneinfo_abbrs_windows.go | ||
zoneinfo_android_test.go | ||
zoneinfo_android.go | ||
zoneinfo_ios.go | ||
zoneinfo_js.go | ||
zoneinfo_plan9.go | ||
zoneinfo_read.go | ||
zoneinfo_test.go | ||
zoneinfo_unix_test.go | ||
zoneinfo_unix.go | ||
zoneinfo_windows_test.go | ||
zoneinfo_windows.go | ||
zoneinfo.go |