summaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/search/dispatch/searchcluster/SearchClusterTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'container-search/src/test/java/com/yahoo/search/dispatch/searchcluster/SearchClusterTest.java')
-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 4dc85a4f3db..94df796b370 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.Hostnames;
+import com.yahoo.net.HostName;
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, Hostnames.getLocalhost(), "b")) {
+ try (State test = new State("cluster.1", 1, HostName.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, Hostnames.getLocalhost())) {
+ try (State test = new State("cluster.1", 1, HostName.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, Hostnames.getLocalhost(), "otherhost")) {
+ try (State test = new State("cluster.1", 1, HostName.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, Hostnames.getLocalhost(), "b")) {
+ try (State test = new State("cluster.1", 1, HostName.getLocalhost(), "b")) {
test.waitOneFullPingRound();
assertTrue(test.vipStatus.isInRotation());