mirror of https://github.com/apache/activemq.git
fixing unit test to dynamically use a free port
This commit is contained in:
parent
d328864410
commit
86ead7e9d2
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue