]> Cypherpunks repositories - gostls13.git/commit
runtime/race: be less picky about test run time
authorAustin Clements <austin@google.com>
Fri, 14 Jan 2022 18:11:36 +0000 (13:11 -0500)
committerAustin Clements <austin@google.com>
Fri, 14 Jan 2022 21:54:39 +0000 (21:54 +0000)
commit3b5eec937018be98549dea7067964018f0e5824c
treeac435c6d548eb768e8a1971bc670b2295fc94f62
parenta99c38d66381b2a6abbc0d9c88feb3f6291cb245
runtime/race: be less picky about test run time

Currently, there are two regexps in the race detector output tests
that assume subtests will complete in < 1 second. This isn't necessary
and very occasionally fails (on builders that are probably very
loaded). Make these tests less picky about timing.

Fixes #50612.

Change-Id: Ib3f94d6c5dc37541dbeb06de71cf462a74af844b
Reviewed-on: https://go-review.googlesource.com/c/go/+/378581
Trust: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/race/output_test.go