aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/singleexecutor/singleexecutor_test.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@vespa.ai>2024-06-28 15:06:55 +0000
committerHenning Baldersheim <balder@vespa.ai>2024-06-28 15:46:04 +0000
commitf978040e1a234b2e3769c362873a43ee6163e224 (patch)
tree1eed451a4face19bbefb13f08e978062fbe0ab4b /vespalib/src/tests/singleexecutor/singleexecutor_test.cpp
parenta045360251f9b0b42aef32af860f1a3a3e3d3b16 (diff)
Include test_master.hpp explicit.
Diffstat (limited to 'vespalib/src/tests/singleexecutor/singleexecutor_test.cpp')
-rw-r--r--vespalib/src/tests/singleexecutor/singleexecutor_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/vespalib/src/tests/singleexecutor/singleexecutor_test.cpp b/vespalib/src/tests/singleexecutor/singleexecutor_test.cpp
index 224a4a95afe..e20b42601c5 100644
--- a/vespalib/src/tests/singleexecutor/singleexecutor_test.cpp
+++ b/vespalib/src/tests/singleexecutor/singleexecutor_test.cpp
@@ -82,7 +82,7 @@ void verifyResizeTaskLimit(bool up) {
EXPECT_EQUAL(1u, started);
executor.setTaskLimit(targetTaskLimit);
EXPECT_EQUAL(INITIAL_2inN, executor.getTaskLimit());
- EXPECT_EQUAL(INITIAL_2inN*waterMarkRatio, executor.get_watermark());
+ EXPECT_EQUAL(INITIAL_2inN*waterMarkRatio, static_cast<double>(executor.get_watermark()));
allowed = 5;
while (started < 6);
EXPECT_EQUAL(6u, started);
@@ -101,7 +101,7 @@ void verifyResizeTaskLimit(bool up) {
while (started < INITIAL + 1);
EXPECT_EQUAL(INITIAL + 1, started);
EXPECT_EQUAL(roundedTaskLimit, executor.getTaskLimit());
- EXPECT_EQUAL(roundedTaskLimit*waterMarkRatio, executor.get_watermark());
+ EXPECT_EQUAL(roundedTaskLimit*waterMarkRatio, static_cast<double>(executor.get_watermark()));
allowed = INITIAL + 1;
}