use first available port for JettyTest

This commit is contained in:
Xavier Léauté 2014-12-10 12:53:11 -08:00
parent 6f6cc463b0
commit 7878d391bd
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ public class JettyTest
public void configure(Binder binder) public void configure(Binder binder)
{ {
JsonConfigProvider.bindInstance( JsonConfigProvider.bindInstance(
binder, Key.get(DruidNode.class, Self.class), new DruidNode("test", "localhost", 9999) binder, Key.get(DruidNode.class, Self.class), new DruidNode("test", "localhost", null)
); );
binder.bind(JettyServerInitializer.class).to(JettyServerInit.class).in(LazySingleton.class); binder.bind(JettyServerInitializer.class).to(JettyServerInit.class).in(LazySingleton.class);
Jerseys.addResource(binder, SlowResource.class); Jerseys.addResource(binder, SlowResource.class);