summaryrefslogtreecommitdiffstats
path: root/streamingvisitors/src/tests
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahooinc.com>2024-01-22 15:00:20 +0100
committerGitHub <noreply@github.com>2024-01-22 15:00:20 +0100
commite0116850193373abdd94e460c09411f1adca7c75 (patch)
tree15178999a1d2c844d119d845049e7fe9332e4059 /streamingvisitors/src/tests
parent9f7205cb272e140dfd06c381e1d478f35933b0a3 (diff)
parent44f5b97651513689fc3f441fd2490a9249e8b6fc (diff)
Merge pull request #30013 from vespa-engine/toregge/adjust-search-streaming-hit-constructor-signature
Adjust search::streaming::Hit to better match
Diffstat (limited to 'streamingvisitors/src/tests')
-rw-r--r--streamingvisitors/src/tests/rank_processor/rank_processor_test.cpp2
-rw-r--r--streamingvisitors/src/tests/searcher/searcher_test.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/streamingvisitors/src/tests/rank_processor/rank_processor_test.cpp b/streamingvisitors/src/tests/rank_processor/rank_processor_test.cpp
index 93e35e4c6d2..c9518b29884 100644
--- a/streamingvisitors/src/tests/rank_processor/rank_processor_test.cpp
+++ b/streamingvisitors/src/tests/rank_processor/rank_processor_test.cpp
@@ -84,7 +84,7 @@ RankProcessorTest::test_unpack_match_data_for_term_node(bool interleaved_feature
EXPECT_EQ(invalid_id, tfmd->getDocId());
RankProcessor::unpack_match_data(1, *md, *_query_wrapper);
EXPECT_EQ(invalid_id, tfmd->getDocId());
- node->add(0, field_id, 0, 1);
+ node->add(field_id, 0, 1, 0);
auto& field_info = node->getFieldInfo(field_id);
field_info.setHitCount(mock_num_occs);
field_info.setFieldLength(mock_field_length);
diff --git a/streamingvisitors/src/tests/searcher/searcher_test.cpp b/streamingvisitors/src/tests/searcher/searcher_test.cpp
index ee2c5e2b5c7..705e14c11a5 100644
--- a/streamingvisitors/src/tests/searcher/searcher_test.cpp
+++ b/streamingvisitors/src/tests/searcher/searcher_test.cpp
@@ -400,7 +400,8 @@ assertSearch(FieldSearcher & fs, const StringList & query, const FieldValue & fv
EXPECT_EQUAL(hl.size(), exp[i].size());
ASSERT_TRUE(hl.size() == exp[i].size());
for (size_t j = 0; j < hl.size(); ++j) {
- EXPECT_EQUAL((size_t)hl[j].pos(), exp[i][j]);
+ EXPECT_EQUAL(0u, hl[j].field_id());
+ EXPECT_EQUAL((size_t)hl[j].position(), exp[i][j]);
}
}
}