Skip to content

Commit

Permalink
Fixed the slow log timestamp format is inconsistent with Redis (OpenA…
Browse files Browse the repository at this point in the history
  • Loading branch information
chenbt-hz committed Dec 15, 2023
1 parent f92c109 commit e7bdad3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/integration/slowlog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ var _ = Describe("Slowlog Commands", func() {
Expect(err).NotTo(HaveOccurred())

for i := 0; i < 10; i++ {
Expect(isBetween(time1.UnixNano(), time2.UnixNano(), time.Unix(0, result[i].Time.Unix()*1e3).UnixNano())).To(Equal(true))
Expect(result[i].Time.Unix()).To(BeNumerically("~", 0, 9999999999))
Expect(isBetween(time1.Unix(), time2.Unix(), result[i].Time.Unix())).To(Equal(true))
}
})
})
Expand Down

0 comments on commit e7bdad3

Please sign in to comment.