time: fix longtest flake

Should fix longtest build dashboard flake:
https://ci.chromium.org/ui/p/golang/builders/ci/gotip-linux-amd64-longtest/b8753459332096992401/overview

Change-Id: I613bd4337aa65180389674e136d215135fde3196
Reviewed-on: https://go-review.googlesource.com/c/go/+/571803
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Russ Cox 2024-03-14 21:42:50 -04:00 committed by Gopher Robot
parent 453cbb8f67
commit a29c30f620
1 changed files with 1 additions and 1 deletions

View File

@ -357,7 +357,7 @@ func testTimerChan(t *testing.T, tim timer, C <-chan Time, synctimerchan bool) {
// wait 10ms just to make a timer go off.
const (
sched = 10 * Millisecond
tries = 10
tries = 100
)
drain := func() {