summaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/prelude/cluster/ClusterSearcherTestCase.java
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-11-22 12:44:40 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2022-11-23 10:01:17 +0100
commitb8165e0e316527dc956489bc416f9ccb83cf1904 (patch)
treef2242e63ca98c5293768b8a5858d7f605c95d27d /container-search/src/test/java/com/yahoo/prelude/cluster/ClusterSearcherTestCase.java
parent8ccd836e176f4d1bea05ee835428977c50463e0e (diff)
Only have the DispatchNodesConfig inject into one component.
Let RpcResourcePool/RpcClient be owned by the dispatcher. Step 2 in preparing for smooth handling of content cluster changes.
Diffstat (limited to 'container-search/src/test/java/com/yahoo/prelude/cluster/ClusterSearcherTestCase.java')
-rw-r--r--container-search/src/test/java/com/yahoo/prelude/cluster/ClusterSearcherTestCase.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/container-search/src/test/java/com/yahoo/prelude/cluster/ClusterSearcherTestCase.java b/container-search/src/test/java/com/yahoo/prelude/cluster/ClusterSearcherTestCase.java
index 978da396f3e..5df8d2e5444 100644
--- a/container-search/src/test/java/com/yahoo/prelude/cluster/ClusterSearcherTestCase.java
+++ b/container-search/src/test/java/com/yahoo/prelude/cluster/ClusterSearcherTestCase.java
@@ -17,7 +17,6 @@ import com.yahoo.search.Query;
import com.yahoo.search.Result;
import com.yahoo.search.config.ClusterConfig;
import com.yahoo.search.dispatch.Dispatcher;
-import com.yahoo.search.dispatch.rpc.RpcResourcePool;
import com.yahoo.search.result.Hit;
import com.yahoo.search.schema.RankProfile;
import com.yahoo.search.schema.Schema;
@@ -451,8 +450,7 @@ public class ClusterSearcherTestCase {
DispatchConfig dispatchConfig = new DispatchConfig.Builder().build();
DispatchNodesConfig nodesConfig = new DispatchNodesConfig.Builder().build();
- Dispatcher dispatcher = new Dispatcher(new RpcResourcePool(dispatchConfig, nodesConfig),
- ComponentId.createAnonymousComponentId("test-id"),
+ Dispatcher dispatcher = new Dispatcher(ComponentId.createAnonymousComponentId("test-id"),
dispatchConfig,
nodesConfig,
vipStatus);