aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/search/dispatch/searchcluster
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2022-03-31 10:35:33 +0200
committerJon Marius Venstad <venstad@gmail.com>2022-03-31 10:35:33 +0200
commit2353b584a69e14f97682ad90b3a492b1530abff2 (patch)
treebe8cb398699c79a20d9015b6451f8bb5bf360613 /container-search/src/test/java/com/yahoo/search/dispatch/searchcluster
parent51368648e157524420ece2e1754acbe93e0c1eaf (diff)
Move HostName -> Hostnames, and DomainName and Hostname to com.yahoo.net
Diffstat (limited to 'container-search/src/test/java/com/yahoo/search/dispatch/searchcluster')
-rw-r--r--container-search/src/test/java/com/yahoo/search/dispatch/searchcluster/SearchClusterTest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/container-search/src/test/java/com/yahoo/search/dispatch/searchcluster/SearchClusterTest.java b/container-search/src/test/java/com/yahoo/search/dispatch/searchcluster/SearchClusterTest.java
index 5da7af9da1c..4dc85a4f3db 100644
--- a/container-search/src/test/java/com/yahoo/search/dispatch/searchcluster/SearchClusterTest.java
+++ b/container-search/src/test/java/com/yahoo/search/dispatch/searchcluster/SearchClusterTest.java
@@ -4,7 +4,7 @@ package com.yahoo.search.dispatch.searchcluster;
import com.yahoo.container.QrSearchersConfig;
import com.yahoo.container.handler.ClustersStatus;
import com.yahoo.container.handler.VipStatus;
-import com.yahoo.net.HostName;
+import com.yahoo.net.Hostnames;
import com.yahoo.prelude.Pong;
import com.yahoo.search.cluster.ClusterMonitor;
import com.yahoo.search.dispatch.MockSearchCluster;
@@ -181,7 +181,7 @@ public class SearchClusterTest {
@Test
public void requireThatVipStatusIsDefaultDownWithLocalDispatch() {
- try (State test = new State("cluster.1", 1, HostName.getLocalhost(), "b")) {
+ try (State test = new State("cluster.1", 1, Hostnames.getLocalhost(), "b")) {
assertTrue(test.searchCluster.localCorpusDispatchTarget().isPresent());
assertFalse(test.vipStatus.isInRotation());
@@ -192,7 +192,7 @@ public class SearchClusterTest {
@Test
public void requireThatVipStatusStaysUpWithLocalDispatchAndClusterSize1() {
- try (State test = new State("cluster.1", 1, HostName.getLocalhost())) {
+ try (State test = new State("cluster.1", 1, Hostnames.getLocalhost())) {
assertTrue(test.searchCluster.localCorpusDispatchTarget().isPresent());
assertFalse(test.vipStatus.isInRotation());
@@ -206,7 +206,7 @@ public class SearchClusterTest {
@Test
public void requireThatVipStatusIsDefaultDownWithLocalDispatchAndClusterSize2() {
- try (State test = new State("cluster.1", 1, HostName.getLocalhost(), "otherhost")) {
+ try (State test = new State("cluster.1", 1, Hostnames.getLocalhost(), "otherhost")) {
assertTrue(test.searchCluster.localCorpusDispatchTarget().isPresent());
assertFalse(test.vipStatus.isInRotation());
@@ -220,7 +220,7 @@ public class SearchClusterTest {
@Test
public void requireThatVipStatusDownWhenLocalIsDown() {
- try (State test = new State("cluster.1",1,HostName.getLocalhost(), "b")) {
+ try (State test = new State("cluster.1", 1, Hostnames.getLocalhost(), "b")) {
test.waitOneFullPingRound();
assertTrue(test.vipStatus.isInRotation());