Skip to content

Commit

Permalink
tsutil: Fix int overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel committed Jul 8, 2021
1 parent d9899ba commit a34d3ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsutil/clock.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type testClock struct {
// NewTestClock returns a test Clock starting at 1234567890000 millseconds since
// epoch. Each access to Now() increases time by 1 millisecond.
func NewTestClock() Clock {
t := ParseMillis(1234567890000)
t := ParseMillis(int64(1234567890000))
return &testClock{
t: t,
tick: time.Millisecond,
Expand Down

0 comments on commit a34d3ce

Please sign in to comment.