We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3878438 commit 10371bcCopy full SHA for 10371bc
redisearch/schema_test.go
@@ -5,6 +5,7 @@ import (
5
"github.com/stretchr/testify/assert"
6
"reflect"
7
"testing"
8
+ "time"
9
)
10
11
func TestNewSchema(t *testing.T) {
@@ -145,6 +146,15 @@ func TestSchema_SkipInitialScan(t *testing.T) {
145
146
c = createClient("skip-initial-scan-test-scan")
147
c.CreateIndexWithIndexDefinition(schema1, indexDefinition)
148
assert.Nil(t, err)
149
+
150
+ // Wait for all documents to be indexed
151
+ info, err := c.Info()
152
+ assert.Nil(t, err)
153
+ for info.IsIndexing {
154
+ time.Sleep(time.Second)
155
+ info, _ = c.Info()
156
+ }
157
158
_, total, err := c.Search(q)
159
160
assert.Equal(t, 1, total)
0 commit comments