activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1354448 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/UnlimitedEnqueueTest.java
Date Wed, 27 Jun 2012 11:53:23 GMT
Author: gtully
Date: Wed Jun 27 11:53:22 2012
New Revision: 1354448

URL: http://svn.apache.org/viewvc?rev=1354448&view=rev
Log:
speed up and ensure test works on virtualised/slow hw - ie: ci

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/UnlimitedEnqueueTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/UnlimitedEnqueueTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/UnlimitedEnqueueTest.java?rev=1354448&r1=1354447&r2=1354448&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/UnlimitedEnqueueTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/UnlimitedEnqueueTest.java
Wed Jun 27 11:53:22 2012
@@ -49,7 +49,7 @@ public class UnlimitedEnqueueTest  {
 
     private static final Logger LOG = LoggerFactory.getLogger(UnlimitedEnqueueTest.class);
     BrokerService brokerService = null;
-    final long numMessages = 50000;
+    final long numMessages = 5000;
     final long numThreads = 10;
     final int payLoadSize = 100*1024;
 
@@ -78,7 +78,7 @@ public class UnlimitedEnqueueTest  {
         
         // optional, reduce the usage limit so that spooling will occur faster
         brokerService.getSystemUsage().getMemoryUsage().setLimit(10 * 1024 * 1024);
-        brokerService.getSystemUsage().getTempUsage().setLimit(numMessages * payLoadSize
* 2);
+        brokerService.getSystemUsage().getTempUsage().setLimit((numMessages * payLoadSize)
+ (1000 * payLoadSize));
 
         PolicyMap policyMap = new PolicyMap();
         List<PolicyEntry> entries = new ArrayList<PolicyEntry>();



Mime
View raw message