aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/tests/storageserver/priorityconvertertest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'storage/src/tests/storageserver/priorityconvertertest.cpp')
-rw-r--r--storage/src/tests/storageserver/priorityconvertertest.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/storage/src/tests/storageserver/priorityconvertertest.cpp b/storage/src/tests/storageserver/priorityconvertertest.cpp
index 2f79a14af58..c18f36f9b6c 100644
--- a/storage/src/tests/storageserver/priorityconvertertest.cpp
+++ b/storage/src/tests/storageserver/priorityconvertertest.cpp
@@ -1,6 +1,5 @@
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/documentapi/documentapi.h>
#include <vespa/storage/storageserver/priorityconverter.h>
#include <tests/common/testhelper.h>
#include <vespa/vespalib/gtest/gtest.h>
@@ -14,16 +13,14 @@ struct PriorityConverterTest : Test {
void SetUp() override {
vdstestlib::DirConfig config(getStandardConfig(true));
- _converter = std::make_unique<PriorityConverter>(config.getConfigId());
+ _converter = std::make_unique<PriorityConverter>(config::ConfigUri(config.getConfigId()));
};
};
TEST_F(PriorityConverterTest, normal_usage) {
for (int p = 0; p < 16; ++p) {
- EXPECT_EQ(
- (50 + p * 10),
- _converter->toStoragePriority(
- static_cast<documentapi::Priority::Value>(p)));
+ EXPECT_EQ((50 + p * 10),
+ _converter->toStoragePriority(static_cast<documentapi::Priority::Value>(p)));
}
for (int i = 0; i < 256; ++i) {
uint8_t p = i;