summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-02-08 11:58:40 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2019-02-08 11:58:40 +0000
commitf18b80d57b544e33c7decc6f04ad2659c2c1196d (patch)
tree790f39e8020a03e0d0470f0908d3138c78853c6e /searchcore
parentad0bc187fa61734b55a176eb1d378cb37520793d (diff)
Change sign so that softDoom and doomOvertime is consistent.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/tests/proton/matching/matching_stats_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/searchcore/src/tests/proton/matching/matching_stats_test.cpp b/searchcore/src/tests/proton/matching/matching_stats_test.cpp
index cf08e7de12b..9bf627a6289 100644
--- a/searchcore/src/tests/proton/matching/matching_stats_test.cpp
+++ b/searchcore/src/tests/proton/matching/matching_stats_test.cpp
@@ -198,7 +198,7 @@ TEST("requireThatPartitionsAreAddedCorrectly") {
MatchingStats::Partition otherSubPart;
otherSubPart.docsCovered(7).docsMatched(3).docsRanked(2).docsReRanked(1)
- .active_time(0.5).wait_time(1.0).softDoomed(true).doomOvertime(-300);
+ .active_time(0.5).wait_time(1.0).softDoomed(true).doomOvertime(300);
all1.merge_partition(otherSubPart, 1);
EXPECT_EQUAL(1u, all1.softDoomed());
EXPECT_EQUAL(1000, all1.doomOvertime());
@@ -219,7 +219,7 @@ TEST("requireThatPartitionsAreAddedCorrectly") {
EXPECT_EQUAL(0.5, all1.getPartition(1).active_time_max());
EXPECT_EQUAL(1.0, all1.getPartition(1).wait_time_max());
EXPECT_EQUAL(1u, all1.getPartition(1).softDoomed());
- EXPECT_EQUAL(-300, all1.getPartition(1).doomOvertime());
+ EXPECT_EQUAL(300, all1.getPartition(1).doomOvertime());
MatchingStats all2;
all2.merge_partition(otherSubPart, 0);