Skip to content

Commit 5f5b21e

Browse files
committed
Fix JSONDel tests
1 parent 3c307bb commit 5f5b21e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

json_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,8 @@ var _ = Describe("JSON Commands", Label("json"), func() {
406406
Expect(cmd2.Val()).To(Equal(int64(1)))
407407

408408
cmd3 := client.JSONGet(ctx, "del1", "$")
409-
Expect(cmd3.Err()).NotTo(HaveOccurred())
410-
Expect(cmd3.Val()).To(HaveLen(0))
409+
Expect(cmd3.Err()).To(Equal(redis.Nil))
410+
Expect(cmd3.Val()).To(Equal(""))
411411
})
412412

413413
It("should JSONDel with $", Label("json.del", "json"), func() {

0 commit comments

Comments
 (0)