activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cshan...@apache.org
Subject activemq git commit: fixing unit test to dynamically use a free port
Date Thu, 12 Nov 2015 15:56:24 GMT
Repository: activemq
Updated Branches:
  refs/heads/master d32886441 -> 86ead7e9d


fixing unit test to dynamically use a free port


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/86ead7e9
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/86ead7e9
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/86ead7e9

Branch: refs/heads/master
Commit: 86ead7e9d28cf79116d16b676ecaabbc07fc2465
Parents: d328864
Author: Christopher L. Shannon (cshannon) <christopher.l.shannon@gmail.com>
Authored: Thu Nov 12 15:55:29 2015 +0000
Committer: Christopher L. Shannon (cshannon) <christopher.l.shannon@gmail.com>
Committed: Thu Nov 12 15:55:29 2015 +0000

----------------------------------------------------------------------
 .../org/apache/activemq/usage/PeriodicDiskUsageLimitTest.java    | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/86ead7e9/activemq-unit-tests/src/test/java/org/apache/activemq/usage/PeriodicDiskUsageLimitTest.java
----------------------------------------------------------------------
diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usage/PeriodicDiskUsageLimitTest.java
b/activemq-unit-tests/src/test/java/org/apache/activemq/usage/PeriodicDiskUsageLimitTest.java
index 2c07789..7977e98 100644
--- a/activemq-unit-tests/src/test/java/org/apache/activemq/usage/PeriodicDiskUsageLimitTest.java
+++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usage/PeriodicDiskUsageLimitTest.java
@@ -69,9 +69,7 @@ public class PeriodicDiskUsageLimitTest {
         broker.setDeleteAllMessagesOnStartup(true);
         adapter = broker.getPersistenceAdapter();
 
-        TransportConnector connector = broker
-                .addConnector(new TransportConnector());
-        connector.setUri(new URI("tcp://0.0.0.0:8000"));
+        TransportConnector connector = broker.addConnector("tcp://0.0.0.0:0");
         connector.setName("tcp");
 
         brokerConnectURI = broker.getConnectorByName("tcp").getConnectUri();


Mime
View raw message