Skip to content

Commit 1027710

Browse files
Update search_test.go
Co-authored-by: Nedyalko Dyakov <[email protected]>
1 parent 6383f9e commit 1027710

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: search_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -863,8 +863,9 @@ var _ = Describe("RediSearch commands Resp 2", Label("search"), func() {
863863
args := redis.FTAggregateQuery("q", options)
864864
Expect(args).To(ContainElement("TIMEOUT"))
865865
found := false
866-
for _, a := range args {
867-
if reflect.DeepEqual(a, 500) {
866+
for i, a := range args {
867+
if fmt.Sprintf("%s", a) == "TIMEOUT" {
868+
Expect(fmt.Sprintf("%s", args[i+1])).To(Equal("500"))
868869
found = true
869870
break
870871
}

0 commit comments

Comments
 (0)