From aae444eb442862640b80042b42e2ee56cd98d097 Mon Sep 17 00:00:00 2001 From: ofekshenawa Date: Fri, 17 Nov 2023 01:52:22 +0200 Subject: [PATCH] fixing FTConfig dialect test --- search_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/search_test.go b/search_test.go index e4c16b9e..4b7ae193 100644 --- a/search_test.go +++ b/search_test.go @@ -1115,18 +1115,21 @@ var _ = Describe("RediSearch commands", Label("search"), func() { }) It("should FTConfigSet and FTConfigGet dialect", Label("search", "ftconfigget", "ftconfigset"), func() { + res, err := client.FTConfigSet(ctx, "DEFAULT_DIALECT", "1").Result() + Expect(err).NotTo(HaveOccurred()) + Expect(res).To(BeEquivalentTo("OK")) + defDialect, err := client.FTConfigGet(ctx, "DEFAULT_DIALECT").Result() Expect(err).NotTo(HaveOccurred()) Expect(defDialect).To(BeEquivalentTo(map[string]interface{}{"DEFAULT_DIALECT": "1"})) - res, err := client.FTConfigSet(ctx, "DEFAULT_DIALECT", "2").Result() + res, err = client.FTConfigSet(ctx, "DEFAULT_DIALECT", "2").Result() Expect(err).NotTo(HaveOccurred()) Expect(res).To(BeEquivalentTo("OK")) defDialect, err = client.FTConfigGet(ctx, "DEFAULT_DIALECT").Result() Expect(err).NotTo(HaveOccurred()) Expect(defDialect).To(BeEquivalentTo(map[string]interface{}{"DEFAULT_DIALECT": "2"})) - }) It("should FTCreate WithSuffixtrie", Label("search", "ftcreate", "ftinfo"), func() {