mirror of https://github.com/go-redis/redis.git
fixing tests
This commit is contained in:
parent
555b8f3e47
commit
2547d1a0ce
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue