(t *testing.T)
| 400 | } |
| 401 | |
| 402 | func TestVectorIndexRebuildWhenChange(t *testing.T) { |
| 403 | dropPredicate("vtest") |
| 404 | setSchema(fmt.Sprintf(vectorSchemaWithIndex, "vtest", "4", "euclidean")) |
| 405 | |
| 406 | numVectors := 9000 |
| 407 | vectorSize := 100 |
| 408 | |
| 409 | randomVectors, _ := generateRandomVectors(numVectors, vectorSize, "vtest") |
| 410 | require.NoError(t, addTriplesToCluster(randomVectors)) |
| 411 | |
| 412 | startTime := time.Now() |
| 413 | setSchema(fmt.Sprintf(vectorSchemaWithIndex, "vtest", "6", "euclidean")) |
| 414 | |
| 415 | dur := time.Since(startTime) |
| 416 | // Easy way to check that the index was actually rebuilt |
| 417 | require.Greater(t, dur, time.Second*4) |
| 418 | } |
| 419 | |
| 420 | func TestSimilarToOptionsIntegration(t *testing.T) { |
| 421 | const pred = "voptions" |
nothing calls this directly
no test coverage detected