aboutsummaryrefslogtreecommitdiffstats
path: root/container-search
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2016-07-04 15:42:15 +0200
committerJon Bratseth <bratseth@yahoo-inc.com>2016-07-04 15:42:15 +0200
commit86e3502bca6d410786c73379336f238495240bfe (patch)
tree44c5926598d190a2e226b541d22a131f189033d3 /container-search
parent629b0329fbedf764e938c892a0a6ef29ed2a125f (diff)
Remove changes that will be part of another PR
Diffstat (limited to 'container-search')
-rw-r--r--container-search/src/test/java/com/yahoo/fs4/mplex/BackendTestCase.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/container-search/src/test/java/com/yahoo/fs4/mplex/BackendTestCase.java b/container-search/src/test/java/com/yahoo/fs4/mplex/BackendTestCase.java
index a1d10a5eb8c..c3e74ddce3d 100644
--- a/container-search/src/test/java/com/yahoo/fs4/mplex/BackendTestCase.java
+++ b/container-search/src/test/java/com/yahoo/fs4/mplex/BackendTestCase.java
@@ -6,7 +6,6 @@ import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.io.IOException;
-import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.net.Socket;
@@ -14,7 +13,6 @@ import java.nio.ByteBuffer;
import java.util.logging.Logger;
import com.yahoo.container.search.Fs4Config;
-import com.yahoo.net.HostName;
import com.yahoo.net.LinuxInetAddress;
import com.yahoo.prelude.fastsearch.FS4ResourcePool;
import org.junit.After;
@@ -113,8 +111,7 @@ public class BackendTestCase {
public MockDispatch dispatch;
public MockServer() throws IOException {
- System.out.println("Setting up server at " + HostName.getLocalhost());
- ServerSocket socket = new ServerSocket(0, 50, InetAddress.getByName(HostName.getLocalhost()));
+ ServerSocket socket = new ServerSocket(0, 50, LinuxInetAddress.getLocalHost());
host = (InetSocketAddress) socket.getLocalSocketAddress();
dispatch = new MockDispatch(socket);
worker = new Thread(dispatch);