1
0
mirror of https://github.com/redis/go-redis.git synced 2025-06-12 14:21:52 +03:00

chore: fix staticcheck (#2631)

This commit is contained in:
guangwu
2023-07-02 19:38:52 +08:00
committed by GitHub
parent 50f04c14de
commit c0ab7815ea
2 changed files with 2 additions and 2 deletions

View File

@ -612,7 +612,7 @@ var _ = Describe("Commands", func() {
// if too much time (>1s) is used during command execution, it may also cause the test to fail.
// so the ObjectIdleTime result should be <=now-start+1s
// link: https://github.com/redis/redis/blob/5b48d900498c85bbf4772c1d466c214439888115/src/object.c#L1265-L1272
Expect(idleTime.Val()).To(BeNumerically("<=", time.Now().Sub(start)+time.Second))
Expect(idleTime.Val()).To(BeNumerically("<=", time.Since(start)+time.Second))
})
It("should Persist", func() {