aboutsummaryrefslogtreecommitdiffstats
path: root/logserver/src/test/java/com
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@verizonmedia.com>2019-03-27 14:26:39 +0100
committerBjørn Christian Seime <bjorncs@verizonmedia.com>2019-03-27 14:37:33 +0100
commitbbc7aecaa48a73827a64cb3e355e85481c0bc63c (patch)
tree64c19eca15506b56d7c28d43892e8649348aacdd /logserver/src/test/java/com
parent634983cc739b8f34cc85867fa200f889cbfda9c9 (diff)
Add rpc interface to logserver
Diffstat (limited to 'logserver/src/test/java/com')
-rw-r--r--logserver/src/test/java/com/yahoo/logserver/ServerTestCase.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/logserver/src/test/java/com/yahoo/logserver/ServerTestCase.java b/logserver/src/test/java/com/yahoo/logserver/ServerTestCase.java
index a97eaf69f84..e3793ee3057 100644
--- a/logserver/src/test/java/com/yahoo/logserver/ServerTestCase.java
+++ b/logserver/src/test/java/com/yahoo/logserver/ServerTestCase.java
@@ -5,12 +5,13 @@ import com.yahoo.log.LogSetup;
import com.yahoo.logserver.handlers.LogHandler;
import com.yahoo.logserver.handlers.logmetrics.LogMetricsPlugin;
import com.yahoo.logserver.test.LogDispatcherTestCase;
+import org.junit.Test;
import java.io.IOException;
-import org.junit.*;
-
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
/**
* Unit tests for the Server class.
@@ -23,7 +24,7 @@ public class ServerTestCase {
public void testStartupAndRegHandlers() throws IOException, InterruptedException {
Server.help();
Server server = Server.getInstance();
- server.initialize(18322);
+ server.initialize(18322, 18323); // TODO Stop using hardcoded ports
LogSetup.clearHandlers();
Thread serverThread = new Thread(server);
serverThread.start();