1
0
mirror of https://github.com/golang/go synced 2024-11-16 22:44:49 -07:00
go/src/time
Damien Neil 4ffa2f1c23 time: fallback to slower TestTicker test after one failure
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>
2021-10-06 23:01:01 +00:00
..
testdata
tzdata
embed.go
example_test.go
export_android_test.go
export_test.go
export_windows_test.go
format_test.go time: truncate fractional seconds longer than 9 digits 2021-10-06 19:45:35 +00:00
format.go time: truncate fractional seconds longer than 9 digits 2021-10-06 19:45:35 +00:00
genzabbrs.go
internal_test.go
mono_test.go
sleep_test.go runtime: in adjustTimers back up as far as necessary 2021-09-15 00:56:40 +00:00
sleep.go
sys_plan9.go
sys_unix.go
sys_windows.go
tick_test.go time: fallback to slower TestTicker test after one failure 2021-10-06 23:01:01 +00:00
tick.go
time_test.go time: support fractional timezone minutes in MarshalBinary 2021-09-17 23:18:47 +00:00
time.go time: support fractional timezone minutes in MarshalBinary 2021-09-17 23:18:47 +00:00
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 time: add doc comment about tzdata package 2021-09-30 15:03:39 +00:00