]> Cypherpunks repositories - gostls13.git/commitdiff
time: time/internal_test.go remove redundant type conversion
authorhxzhouh <hxzhouh@gmail.com>
Fri, 31 May 2024 15:45:26 +0000 (23:45 +0800)
committerGopher Robot <gobot@golang.org>
Mon, 3 Jun 2024 14:56:37 +0000 (14:56 +0000)
Change-Id: I5aaea4918f024a87146ba54a8d5307658d722fe9
Reviewed-on: https://go-review.googlesource.com/c/go/+/589635
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: hui zhou <hxzhouh@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/time/internal_test.go

index 619f605ae7849940c61c7fd60d5b22c9d506eceb..ef82d4acfbfb9f2fa6c639707d1bd26a25f25425 100644 (file)
@@ -47,7 +47,7 @@ func CheckRuntimeTimerPeriodOverflow() {
        // We manually create a runtimeTimer with huge period, but that expires
        // immediately. The public Timer interface would require waiting for
        // the entire period before the first update.
-       t := (*Timer)(newTimer(runtimeNano(), 1<<63-1, empty, nil, nil))
+       t := newTimer(runtimeNano(), 1<<63-1, empty, nil, nil)
        defer t.Stop()
 
        // If this test fails, we will either throw (when siftdownTimer detects