mirror of
https://github.com/golang/go
synced 2024-11-15 00:40:31 -07:00
time: time/internal_test.go remove redundant type conversion
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>
This commit is contained in:
parent
71751350b0
commit
eaa7d9ff86
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user