fixing unit test to dynamically use a free port

This commit is contained in:
Christopher L. Shannon (cshannon) 2015-11-12 15:55:29 +00:00
parent d328864410
commit 86ead7e9d2
1 changed files with 1 additions and 3 deletions

View File

@ -69,9 +69,7 @@ public class PeriodicDiskUsageLimitTest {
broker.setDeleteAllMessagesOnStartup(true); broker.setDeleteAllMessagesOnStartup(true);
adapter = broker.getPersistenceAdapter(); adapter = broker.getPersistenceAdapter();
TransportConnector connector = broker TransportConnector connector = broker.addConnector("tcp://0.0.0.0:0");
.addConnector(new TransportConnector());
connector.setUri(new URI("tcp://0.0.0.0:8000"));
connector.setName("tcp"); connector.setName("tcp");
brokerConnectURI = broker.getConnectorByName("tcp").getConnectUri(); brokerConnectURI = broker.getConnectorByName("tcp").getConnectUri();