fixing tests

This commit is contained in:
ofekshenawa 2023-11-17 01:42:49 +02:00
parent 555b8f3e47
commit 2547d1a0ce
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ func WaitForIndexing(c *redis.Client, index string) {
for { for {
res, err := c.FTInfo(context.Background(), index).Result() res, err := c.FTInfo(context.Background(), index).Result()
Expect(err).NotTo(HaveOccurred()) Expect(err).NotTo(HaveOccurred())
if res["indexing"].(int64) == 0 { if res["indexing"].(float64) == 0 {
return return
} }
time.Sleep(100 * time.Millisecond) time.Sleep(100 * time.Millisecond)