summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/matching/matching_test.cpp
diff options
context:
space:
mode:
authorHarald Musum <musum@oath.com>2017-08-31 09:32:49 +0200
committerHarald Musum <musum@oath.com>2017-08-31 09:32:49 +0200
commit9f506465b36ef1b7a858211882fc3594d170b418 (patch)
tree5599ed86e4cee0fcb0dd696572b8d038b361b5c2 /searchcore/src/tests/proton/matching/matching_test.cpp
parente4dc0493754618dd33ddf8985d0ddd23001a9d39 (diff)
parent0c7af1343cec5ca95e338ce83dda158f123e72dc (diff)
Merge branch 'master' into revert-3275-revert-3260-hmusum/remove-version-from-def-files
Diffstat (limited to 'searchcore/src/tests/proton/matching/matching_test.cpp')
-rw-r--r--searchcore/src/tests/proton/matching/matching_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/searchcore/src/tests/proton/matching/matching_test.cpp b/searchcore/src/tests/proton/matching/matching_test.cpp
index deadafcad8f..679108ba872 100644
--- a/searchcore/src/tests/proton/matching/matching_test.cpp
+++ b/searchcore/src/tests/proton/matching/matching_test.cpp
@@ -494,11 +494,11 @@ TEST("require that sortspec can be used (multi-threaded)") {
SearchReply::UP reply = world.performSearch(request, threads);
ASSERT_EQUAL(9u, reply->hits.size());
EXPECT_EQUAL(document::DocumentId("doc::100").getGlobalId(), reply->hits[0].gid);
- EXPECT_EQUAL(0.0, reply->hits[0].metric);
+ EXPECT_EQUAL(default_rank_value, reply->hits[0].metric);
EXPECT_EQUAL(document::DocumentId("doc::200").getGlobalId(), reply->hits[1].gid);
- EXPECT_EQUAL(0.0, reply->hits[1].metric);
+ EXPECT_EQUAL(default_rank_value, reply->hits[1].metric);
EXPECT_EQUAL(document::DocumentId("doc::300").getGlobalId(), reply->hits[2].gid);
- EXPECT_EQUAL(0.0, reply->hits[2].metric);
+ EXPECT_EQUAL(default_rank_value, reply->hits[2].metric);
}
}