activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r661719 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/network/NetworkLoadTest.java
Date Fri, 30 May 2008 13:48:02 GMT
Author: chirino
Date: Fri May 30 06:48:01 2008
New Revision: 661719

URL: http://svn.apache.org/viewvc?rev=661719&view=rev
Log:
Fixed test.

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/network/NetworkLoadTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/network/NetworkLoadTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/network/NetworkLoadTest.java?rev=661719&r1=661718&r2=661719&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/network/NetworkLoadTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/network/NetworkLoadTest.java
Fri May 30 06:48:01 2008
@@ -71,7 +71,8 @@
     private static final long SAMPLE_DURATION = Integer.parseInt(System.getProperty("SAMPLES_DURATION",
"" + 1000 * 5));
 	protected static final int BROKER_COUNT = 4;
 	protected static final int MESSAGE_SIZE = 2000;
-
+        String groupId;
+        
 	class ForwardingClient {
 
 		private final AtomicLong forwardCounter = new AtomicLong();
@@ -122,6 +123,7 @@
 
 	
 	protected void setUp() throws Exception {
+	        groupId = "network-load-test-"+System.currentTimeMillis();
 		brokers = new BrokerService[BROKER_COUNT];
 		for (int i = 0; i < brokers.length; i++) {
 		    LOG.info("Starting broker: "+i);
@@ -201,7 +203,6 @@
         TransportConnector transportConnector = new TransportConnector();
         transportConnector.setUri(new URI("tcp://localhost:"+(60000+brokerId)));
         
-        String groupId = "network-load-test-"+System.currentTimeMillis();
         transportConnector.setDiscoveryUri(new URI("multicast://"+groupId));        
         broker.addConnector(transportConnector);
                         



Mime
View raw message