@@ -535,9 +535,6 @@ func (vsuite *VectorTestSuite) TestPartitionedHNSWIndex() {
535535 require .NoError (t , err )
536536
537537 schemaWithoutIndex := `project_description_v: float32vector .`
538- pred := "project_description_v"
539- schemaWithIndex := `project_description_v: float32vector @index(partionedhnsw` +
540- `(numClusters:"1000", partitionStratOpt: "kmeans",metric: "euclidean",vectorDimension: "10")) .`
541538
542539 t .Run ("with more than 1000 vectors" , func (t * testing.T ) {
543540 require .NoError (t , gc .DropAll ())
@@ -550,7 +547,7 @@ func (vsuite *VectorTestSuite) TestPartitionedHNSWIndex() {
550547 _ , err = gc .Mutate (mu )
551548 require .NoError (t , err )
552549
553- err = gc .SetupSchema (schemaWithIndex )
550+ err = gc .SetupSchema (vsuite . schema )
554551 require .NoError (t , err )
555552
556553 testVectorQuery (t , gc , vectors , rdfs , pred , 5 )
@@ -586,7 +583,7 @@ func (vsuite *VectorTestSuite) TestPartitionedHNSWIndex() {
586583 _ , err = gc .Mutate (mu )
587584 require .NoError (t , err )
588585
589- err = gc .SetupSchema (schemaWithIndex )
586+ err = gc .SetupSchema (vsuite . schema )
590587 require .NoError (t , err )
591588
592589 testVectorQuery (t , gc , vectors , rdfs , pred , numVectors )
@@ -606,7 +603,7 @@ func (vsuite *VectorTestSuite) TestPartitionedHNSWIndex() {
606603 _ , err = gc .Mutate (mu )
607604 require .NoError (t , err )
608605
609- err = gc .SetupSchema (schemaWithIndex )
606+ err = gc .SetupSchema (vsuite . schema )
610607 require .NoError (t , err )
611608
612609 // here check schema it should not be changed
0 commit comments