From a69226e622838cea0021aa1762c5ac5cc0cdbdff Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Thu, 29 Sep 2022 11:58:36 +0000 Subject: Update tests. --- .../documentdbconfigscout_test.cpp | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'searchcore/src/tests/proton') diff --git a/searchcore/src/tests/proton/documentdb/documentdbconfigscout/documentdbconfigscout_test.cpp b/searchcore/src/tests/proton/documentdb/documentdbconfigscout/documentdbconfigscout_test.cpp index b8579d66c5f..3a0ae8576ca 100644 --- a/searchcore/src/tests/proton/documentdb/documentdbconfigscout/documentdbconfigscout_test.cpp +++ b/searchcore/src/tests/proton/documentdb/documentdbconfigscout/documentdbconfigscout_test.cpp @@ -22,7 +22,7 @@ namespace DDBCSP getConfig(int64_t generation, const Schema::SP &schema, - shared_ptr repo, + const shared_ptr & repo, const AttributesConfig &attributes) { return test::DocumentDBConfigBuilder(generation, schema, "client", "test"). @@ -43,9 +43,6 @@ assertDefaultAttribute(const AttributesConfig::Attribute &attribute, if (!EXPECT_FALSE(attribute.paged)) { return false; } - if (!EXPECT_FALSE(attribute.enablebitvectors)) { - return false; - } if (!EXPECT_FALSE(attribute.enableonlybitvector)) { return false; } @@ -66,9 +63,6 @@ assertFastSearchAttribute(const AttributesConfig::Attribute &attribute, if (!EXPECT_FALSE(attribute.paged)) { return false; } - if (!EXPECT_FALSE(attribute.enablebitvectors)) { - return false; - } if (!EXPECT_FALSE(attribute.enableonlybitvector)) { return false; } @@ -89,9 +83,6 @@ assertFastSearchAndMoreAttribute(const AttributesConfig::Attribute &attribute, if (!EXPECT_TRUE(attribute.paged)) { return false; } - if (!EXPECT_TRUE(attribute.enablebitvectors)) { - return false; - } if (!EXPECT_TRUE(attribute.enableonlybitvector)) { return false; } @@ -208,7 +199,7 @@ assertScoutedAttributes(const AttributesConfig::AttributeVector &attributes) AttributesConfig::Attribute -setupDefaultAttribute(const vespalib::string name) +setupDefaultAttribute(const vespalib::string & name) { AttributesConfig::Attribute attribute; attribute.name = name; @@ -217,7 +208,7 @@ setupDefaultAttribute(const vespalib::string name) AttributesConfig::Attribute -setupFastSearchAttribute(const vespalib::string name) +setupFastSearchAttribute(const vespalib::string & name) { AttributesConfig::Attribute attribute; attribute.name = name; @@ -227,13 +218,12 @@ setupFastSearchAttribute(const vespalib::string name) AttributesConfig::Attribute -setupFastSearchAndMoreAttribute(const vespalib::string name) +setupFastSearchAndMoreAttribute(const vespalib::string & name) { AttributesConfig::Attribute attribute; attribute.name = name; attribute.fastsearch = true; attribute.paged = true; - attribute.enablebitvectors = true; attribute.enableonlybitvector = true; return attribute; } -- cgit v1.2.3