Skip to content

Commit 490eb97

Browse files
committed
Try to fix json test
1 parent 814ac42 commit 490eb97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

json_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ var _ = Describe("Go-Redis Advanced JSON and RediSearch Tests", func() {
776776
typeCmd := client.JSONType(ctx, "person:1", "$.person.nickname")
777777
nicknameType, err := typeCmd.Result()
778778
Expect(err).NotTo(HaveOccurred(), "JSON.TYPE failed")
779-
Expect(nicknameType[0]).To(Equal([]interface{}{"string"}), "JSON.TYPE mismatch for nickname")
779+
Expect(nicknameType[0]).To(Equal("string"), "JSON.TYPE mismatch for nickname")
780780

781781
createIndexCmd := client.Do(ctx, "FT.CREATE", "person_idx", "ON", "JSON",
782782
"PREFIX", "1", "person:", "SCHEMA",

0 commit comments

Comments
 (0)