HDDS-827. TestStorageContainerManagerHttpServer should use dynamic port. Contributed by Sandeep Nemuri.

This commit is contained in:
Márton Elek 2018-11-15 14:23:24 +01:00
parent 2718f7534d
commit 0a8b1efbfb

View File

@ -95,6 +95,7 @@ public TestStorageContainerManagerHttpServer(Policy policy) {
@Test public void testHttpPolicy() throws Exception { @Test public void testHttpPolicy() throws Exception {
conf.set(DFSConfigKeys.DFS_HTTP_POLICY_KEY, policy.name()); conf.set(DFSConfigKeys.DFS_HTTP_POLICY_KEY, policy.name());
conf.set(ScmConfigKeys.OZONE_SCM_HTTP_ADDRESS_KEY, "localhost:0");
conf.set(ScmConfigKeys.OZONE_SCM_HTTPS_ADDRESS_KEY, "localhost:0"); conf.set(ScmConfigKeys.OZONE_SCM_HTTPS_ADDRESS_KEY, "localhost:0");
InetSocketAddress.createUnresolved("localhost", 0); InetSocketAddress.createUnresolved("localhost", 0);