Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4677,7 +4677,7 @@ var _ = Describe("Commands", func() {
client.ConfigSet(ctx, key, "0")
defer client.ConfigSet(ctx, key, old[1].(string))

err := rdb.Do(ctx, "slowlog", "reset").Err()
err := client.Do(ctx, "slowlog", "reset").Err()
Expect(err).NotTo(HaveOccurred())

client.Set(ctx, "test", "true", 0)
Expand Down
6 changes: 3 additions & 3 deletions redis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,18 +290,18 @@ var _ = Describe("Client", func() {

It("should set and scan time", func() {
tm := time.Now()
err := rdb.Set(ctx, "now", tm, 0).Err()
err := client.Set(ctx, "now", tm, 0).Err()
Expect(err).NotTo(HaveOccurred())

var tm2 time.Time
err = rdb.Get(ctx, "now").Scan(&tm2)
err = client.Get(ctx, "now").Scan(&tm2)
Expect(err).NotTo(HaveOccurred())

Expect(tm2).To(BeTemporally("==", tm))
})

It("should Conn", func() {
err := rdb.Conn(ctx).Get(ctx, "this-key-does-not-exist").Err()
err := client.Conn(ctx).Get(ctx, "this-key-does-not-exist").Err()
Expect(err).To(Equal(redis.Nil))
})
})
Expand Down