Skip to content

Commit a57742d

Browse files
committed
Use the right redis client in tests
1 parent 803592d commit a57742d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

commands_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4677,7 +4677,7 @@ var _ = Describe("Commands", func() {
46774677
client.ConfigSet(ctx, key, "0")
46784678
defer client.ConfigSet(ctx, key, old[1].(string))
46794679

4680-
err := rdb.Do(ctx, "slowlog", "reset").Err()
4680+
err := client.Do(ctx, "slowlog", "reset").Err()
46814681
Expect(err).NotTo(HaveOccurred())
46824682

46834683
client.Set(ctx, "test", "true", 0)

redis_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,18 +290,18 @@ var _ = Describe("Client", func() {
290290

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

296296
var tm2 time.Time
297-
err = rdb.Get(ctx, "now").Scan(&tm2)
297+
err = client.Get(ctx, "now").Scan(&tm2)
298298
Expect(err).NotTo(HaveOccurred())
299299

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

303303
It("should Conn", func() {
304-
err := rdb.Conn(ctx).Get(ctx, "this-key-does-not-exist").Err()
304+
err := client.Conn(ctx).Get(ctx, "this-key-does-not-exist").Err()
305305
Expect(err).To(Equal(redis.Nil))
306306
})
307307
})

0 commit comments

Comments
 (0)