@@ -41,16 +41,15 @@ func (vsuite *VectorTestSuite) TestVectorIncrBackupRestore() {
4141 require .NoError (t , hc .LoginIntoNamespace (dgraphapi .DefaultUser ,
4242 dgraphapi .DefaultPassword , x .RootNamespace ))
4343
44- require .NoError (t , gc .SetupSchema (vsuite .schema ))
44+ require .NoError (t , gc .SetupSchema (vsuite .schemaVecDimesion10 ))
4545
46- numVectors := 500
47- pred := "project_description_v"
46+ numVectors := 1000
4847 allVectors := make ([][][]float32 , 0 , 5 )
4948 allRdfs := make ([]string , 0 , 5 )
5049 for i := 1 ; i <= 5 ; i ++ {
5150 var rdfs string
5251 var vectors [][]float32
53- rdfs , vectors = dgraphapi .GenerateRandomVectors (numVectors * (i - 1 ), numVectors * i , 1 , pred )
52+ rdfs , vectors = dgraphapi .GenerateRandomVectors (numVectors * (i - 1 ), numVectors * i , 10 , pred )
5453 allVectors = append (allVectors , vectors )
5554 allRdfs = append (allRdfs , rdfs )
5655 mu := & api.Mutation {SetNquads : []byte (rdfs ), CommitNow : true }
@@ -162,9 +161,9 @@ func (vsuite *VectorTestSuite) TestVectorBackupRestoreDropIndex() {
162161 // add vector predicate + index
163162 require .NoError (t , gc .SetupSchema (vsuite .schema ))
164163 // add data to the vector predicate
165- numVectors := 3
164+ numVectors := 1000
166165 pred := "project_description_v"
167- rdfs , vectors := dgraphapi .GenerateRandomVectors (0 , numVectors , 1 , pred )
166+ rdfs , vectors := dgraphapi .GenerateRandomVectors (0 , numVectors , 100 , pred )
168167 mu := & api.Mutation {SetNquads : []byte (rdfs ), CommitNow : true }
169168 _ , err = gc .Mutate (mu )
170169 require .NoError (t , err )
@@ -176,7 +175,7 @@ func (vsuite *VectorTestSuite) TestVectorBackupRestoreDropIndex() {
176175 require .NoError (t , gc .SetupSchema (testSchemaWithoutIndex ))
177176
178177 // add more data to the vector predicate
179- rdfs , vectors2 := dgraphapi .GenerateRandomVectors (3 , numVectors + 3 , 1 , pred )
178+ rdfs , vectors2 := dgraphapi .GenerateRandomVectors (numVectors , numVectors + 3 , 100 , pred )
180179 mu = & api.Mutation {SetNquads : []byte (rdfs ), CommitNow : true }
181180 _ , err = gc .Mutate (mu )
182181 require .NoError (t , err )
@@ -214,7 +213,7 @@ func (vsuite *VectorTestSuite) TestVectorBackupRestoreDropIndex() {
214213 }`
215214 resp , err := gc .Query (query )
216215 require .NoError (t , err )
217- require .JSONEq (t , `{"vectors":[{"count":4 }]}` , string (resp .GetJson ()))
216+ require .JSONEq (t , `{"vectors":[{"count":1001 }]}` , string (resp .GetJson ()))
218217
219218 require .NoError (t , err )
220219 allVec := append (vectors , vectors2 ... )
0 commit comments