summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/proton_configurer/proton_configurer_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore/src/tests/proton/proton_configurer/proton_configurer_test.cpp')
-rw-r--r--searchcore/src/tests/proton/proton_configurer/proton_configurer_test.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/searchcore/src/tests/proton/proton_configurer/proton_configurer_test.cpp b/searchcore/src/tests/proton/proton_configurer/proton_configurer_test.cpp
index 48ff1dac93a..b9278c41d1d 100644
--- a/searchcore/src/tests/proton/proton_configurer/proton_configurer_test.cpp
+++ b/searchcore/src/tests/proton/proton_configurer/proton_configurer_test.cpp
@@ -20,7 +20,6 @@
#include <vespa/searchcore/proton/server/i_proton_disk_layout.h>
#include <vespa/searchcore/proton/server/threading_service_config.h>
#include <vespa/searchsummary/config/config-juniperrc.h>
-#include <vespa/searchcommon/common/schemaconfigurer.h>
#include <vespa/vespalib/util/size_literals.h>
#include <vespa/vespalib/util/threadstackexecutor.h>
#include <vespa/vespalib/test/insertion_operators.h>
@@ -42,7 +41,6 @@ using document::DocumentTypeRepo;
using search::TuneFileDocumentDB;
using std::map;
using search::index::Schema;
-using search::index::SchemaBuilder;
using proton::matching::RankingConstants;
using proton::matching::RankingExpressions;
using proton::matching::OnnxModels;
@@ -58,11 +56,7 @@ struct DBConfigFixture {
Schema::SP buildSchema()
{
- Schema::SP schema(std::make_shared<Schema>());
- SchemaBuilder::build(_attributesBuilder, *schema);
- SchemaBuilder::build(_summaryBuilder, *schema);
- SchemaBuilder::build(_indexschemaBuilder, *schema);
- return schema;
+ return DocumentDBConfig::build_schema(_attributesBuilder, _summaryBuilder, _indexschemaBuilder);
}
static RankingConstants::SP buildRankingConstants()