aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/search/grouping/result
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2024-02-09 10:41:23 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2024-02-09 10:44:44 +0100
commit5abaceb7f7ae65aa0060c3141610aa82498a19d9 (patch)
tree0c10379d314948ffe91543c1d4c96c00da3b33a2 /container-search/src/test/java/com/yahoo/search/grouping/result
parent16a5444d2acda3baff9b21dd624c1f94018e0254 (diff)
- Let there only be one way to wire query to the grouping hits.
Enforce that by requiring it in the constructor. - Carry the DocumentDatabase along, not only the DocusumDefinitionSet.
Diffstat (limited to 'container-search/src/test/java/com/yahoo/search/grouping/result')
-rw-r--r--container-search/src/test/java/com/yahoo/search/grouping/result/FlatteningSearcherTestCase.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/container-search/src/test/java/com/yahoo/search/grouping/result/FlatteningSearcherTestCase.java b/container-search/src/test/java/com/yahoo/search/grouping/result/FlatteningSearcherTestCase.java
index 7ec35151eab..9e8fcb0ea21 100644
--- a/container-search/src/test/java/com/yahoo/search/grouping/result/FlatteningSearcherTestCase.java
+++ b/container-search/src/test/java/com/yahoo/search/grouping/result/FlatteningSearcherTestCase.java
@@ -76,8 +76,8 @@ public class FlatteningSearcherTestCase {
Execution execution = newExecution(new FlatteningSearcher(),
new GroupingExecutor(ComponentId.fromString("grouping")),
new ResultProvider(List.of(
- new GroupingListHit(List.of(group0), null),
- new GroupingListHit(List.of(group1), null))),
+ new GroupingListHit(List.of(group0), null, query),
+ new GroupingListHit(List.of(group1), null, query))),
new HitsProvider(List.of(
new DefaultErrorHit("source 1", ErrorMessage.createBackendCommunicationError("backend communication error 1")),
new DefaultErrorHit("source 2", ErrorMessage.createBackendCommunicationError("backend communication error 1")))));