Skip to content

Commit

Permalink
eliminate usage of time.UnixMilli(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandy Harvie committed Aug 9, 2022
1 parent b333ea2 commit 65aebb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd_stream_test.go
Expand Up @@ -1536,7 +1536,7 @@ func TestStreamClaim(t *testing.T) {
proto.Array(proto.String("0-3")),
)
newTime := s.effectiveNow().Add(time.Millisecond * time.Duration(-10000))
newTimeString := strconv.FormatInt(newTime.UnixMilli(), 10)
newTimeString := strconv.FormatInt(newTime.UnixNano()/time.Millisecond.Nanoseconds(), 10)
mustDo(t, c,
"XCLAIM", "planets", "processing", "alice", "0", "0-1", "RETRYCOUNT", "1", "TIME", newTimeString, "JUSTID",
proto.Array(proto.String("0-1")),
Expand Down

0 comments on commit 65aebb7

Please sign in to comment.