mirror of
https://github.com/typesense/typesense.git
synced 2025-05-23 07:09:44 +08:00
Fix test.
This commit is contained in:
parent
5c75d1553a
commit
b0fe6284f5
@ -1309,7 +1309,7 @@ TEST_F(CollectionFacetingTest, SampleFacetCounts) {
|
||||
spp::sparse_hash_set<std::string>(),
|
||||
spp::sparse_hash_set<std::string>(), 10, "", 30, 4, "", 20, {}, {}, {}, 0,
|
||||
"<mark>", "</mark>", {}, 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<size_t>());
|
||||
ASSERT_EQ(1, res["facet_counts"].size());
|
||||
@ -1325,7 +1325,7 @@ TEST_F(CollectionFacetingTest, SampleFacetCounts) {
|
||||
spp::sparse_hash_set<std::string>(),
|
||||
spp::sparse_hash_set<std::string>(), 10, "", 30, 4, "", 20, {}, {}, {}, 0,
|
||||
"<mark>", "</mark>", {}, 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<size_t>());
|
||||
ASSERT_EQ(1, res["facet_counts"].size());
|
||||
@ -1347,7 +1347,7 @@ TEST_F(CollectionFacetingTest, SampleFacetCounts) {
|
||||
spp::sparse_hash_set<std::string>(),
|
||||
spp::sparse_hash_set<std::string>(), 10, "", 30, 4, "", 20, {}, {}, {}, 0,
|
||||
"<mark>", "</mark>", {}, 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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user