aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/tests/storageserver/priorityconvertertest.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-02-20 23:26:55 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-02-20 23:34:51 +0000
commitacbdc8385fef981a9bc5cbfb46483c54c953dc04 (patch)
tree1d9c02e4e9476510dd32131cad01940969493806 /storage/src/tests/storageserver/priorityconvertertest.cpp
parent1cfea65b9bc71b472e9dc3370b120cf428b6ece0 (diff)
Make ConfigUri constructors explicit and use same context where possible in proton.
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;