Skip to content

Commit

Permalink
Another FTSearch test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Golling authored and Christopher Golling committed Dec 3, 2024
1 parent f6fbfc1 commit d5c2272
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions search_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,14 @@ var _ = Describe("RediSearch commands Resp 2", Label("search"), func() {

res2, err := client.FTSearchWithArgs(ctx, "num", "foo", &redis.FTSearchOptions{NoContent: true, SortBy: []redis.FTSearchSortBy{sortBy2}}).Result()
Expect(err).NotTo(HaveOccurred())
Expect(res2.Total).To(BeEquivalentTo(int64(0)))
Expect(res2.Total).To(BeEquivalentTo(int64(3)))
Expect(res2.Docs[2].ID).To(BeEquivalentTo("doc1"))
Expect(res2.Docs[1].ID).To(BeEquivalentTo("doc2"))
Expect(res2.Docs[0].ID).To(BeEquivalentTo("doc3"))

res3, err := client.FTSearchWithArgs(ctx, "num", "foo", &redis.FTSearchOptions{NoContent: true, SortBy: []redis.FTSearchSortBy{sortBy2}, SortByWithCount: true}).Result()
Expect(err).NotTo(HaveOccurred())
Expect(res3.Total).To(BeEquivalentTo(int64(3)))
Expect(res3.Total).To(BeEquivalentTo(int64(0)))
Expect(res3.Docs[2].ID).To(BeEquivalentTo("doc1"))
Expect(res3.Docs[1].ID).To(BeEquivalentTo("doc2"))
Expect(res3.Docs[0].ID).To(BeEquivalentTo("doc3"))
Expand Down

0 comments on commit d5c2272

Please sign in to comment.