diff --git a/src/include/test/unit_api_ivf_pq_index.cc b/src/include/test/unit_api_ivf_pq_index.cc index f2870b922..190d4bd67 100644 --- a/src/include/test/unit_api_ivf_pq_index.cc +++ b/src/include/test/unit_api_ivf_pq_index.cc @@ -587,13 +587,9 @@ TEST_CASE("clear history with an open index", "[api_ivf_pq_index]") { auto&& [scores_vector_array, ids_vector_array] = index.query(QueryType::InfiniteRAM, training_vector_array, 1, 1); - auto&& [scores_vector_array_finite, ids_vector_array_finite] = - index.query(QueryType::FiniteRAM, training_vector_array, 1, 1); auto second_index = IndexIVFPQ(ctx, index_uri); - auto&& [scores_vector_array_2, ids_vector_array_2] = - second_index.query(QueryType::InfiniteRAM, training_vector_array, 1, 1); - auto&& [scores_vector_array_finite_2, ids_vector_array_finite_2] = + auto&& [scores_vector_array_finite, ids_vector_array_finite] = second_index.query(QueryType::FiniteRAM, training_vector_array, 1, 1); // Here we check that we can clear_history() even with a index in memory. This diff --git a/src/include/test/unit_api_vamana_index.cc b/src/include/test/unit_api_vamana_index.cc index 1fc629502..e248f5919 100644 --- a/src/include/test/unit_api_vamana_index.cc +++ b/src/include/test/unit_api_vamana_index.cc @@ -472,7 +472,7 @@ TEST_CASE("storage_version", "[api_vamana_index]") { } TEST_CASE("clear history with an open index", "[api_ivf_pq_index]") { - auto ctx = tiledb::Context{}; + auto ctx = tiledb::Context{}; using feature_type_type = uint8_t; using id_type_type = uint32_t; using adjacency_row_index_type_type = uint64_t; @@ -489,11 +489,11 @@ TEST_CASE("clear history with an open index", "[api_ivf_pq_index]") { vfs.remove_dir(index_uri); } -auto index = IndexVamana(std::make_optional( - {{"feature_type", feature_type}, - {"id_type", id_type}, - {"l_build", std::to_string(l_build)}, - {"r_max_degree", std::to_string(r_max_degree)}})); + auto index = IndexVamana(std::make_optional( + {{"feature_type", feature_type}, + {"id_type", id_type}, + {"l_build", std::to_string(l_build)}, + {"r_max_degree", std::to_string(r_max_degree)}})); auto training = ColMajorMatrixWithIds{ {{1, 1, 1}, {2, 2, 2}, {3, 3, 3}, {4, 4, 4}}, {1, 2, 3, 4}};