From b0fe6284f545f1013e232f0978ba3c5e2e8772e1 Mon Sep 17 00:00:00 2001 From: Kishore Nallan Date: Tue, 3 Jan 2023 11:24:46 +0530 Subject: [PATCH] Fix test. --- test/collection_faceting_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/collection_faceting_test.cpp b/test/collection_faceting_test.cpp index 4edb30b5..c8674f82 100644 --- a/test/collection_faceting_test.cpp +++ b/test/collection_faceting_test.cpp @@ -1309,7 +1309,7 @@ TEST_F(CollectionFacetingTest, SampleFacetCounts) { spp::sparse_hash_set(), spp::sparse_hash_set(), 10, "", 30, 4, "", 20, {}, {}, {}, 0, "", "", {}, 1000, true, false, true, "", false, 6000 * 1000, 4, 7, fallback, - 4, {off}, 3, 3, 2, 2, false, "", 10, 0).get(); + 4, {off}, 3, 3, 2, 2, false, "", true, 0, 10, 0).get(); ASSERT_EQ(1000, res["found"].get()); ASSERT_EQ(1, res["facet_counts"].size()); @@ -1325,7 +1325,7 @@ TEST_F(CollectionFacetingTest, SampleFacetCounts) { spp::sparse_hash_set(), spp::sparse_hash_set(), 10, "", 30, 4, "", 20, {}, {}, {}, 0, "", "", {}, 1000, true, false, true, "", false, 6000 * 1000, 4, 7, fallback, - 4, {off}, 3, 3, 2, 2, false, "", 10, 10000).get(); + 4, {off}, 3, 3, 2, 2, false, "", true, 0, 10, 10000).get(); ASSERT_EQ(1000, res["found"].get()); ASSERT_EQ(1, res["facet_counts"].size()); @@ -1347,7 +1347,7 @@ TEST_F(CollectionFacetingTest, SampleFacetCounts) { spp::sparse_hash_set(), spp::sparse_hash_set(), 10, "", 30, 4, "", 20, {}, {}, {}, 0, "", "", {}, 1000, true, false, true, "", false, 6000 * 1000, 4, 7, fallback, - 4, {off}, 3, 3, 2, 2, false, "", 200, 0); + 4, {off}, 3, 3, 2, 2, false, "", true, 0, 200, 0); ASSERT_FALSE(res_op.ok()); ASSERT_EQ("Value of `facet_sample_percent` must be less than 100.", res_op.error());