mirror of https://github.com/apache/druid.git
use first available port for JettyTest
This commit is contained in:
parent
6f6cc463b0
commit
7878d391bd
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue