aboutsummaryrefslogtreecommitdiff
path: root/src/time/internal_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/time/internal_test.go')
-rw-r--r--src/time/internal_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/time/internal_test.go b/src/time/internal_test.go
index 336deb9211..3bca88e2b9 100644
--- a/src/time/internal_test.go
+++ b/src/time/internal_test.go
@@ -64,8 +64,7 @@ func CheckRuntimeTimerOverflow() {
// once more.
stopTimer(r)
t.Stop()
- r.when = 0
- startTimer(r)
+ resetTimer(r, 0)
}()
// If the test fails, we will hang here until the timeout in the testing package