speed up and ensure test works on virtualised/slow hw - ie: ci

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1354448 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2012-06-27 11:53:22 +00:00
parent f90e6b9b6d
commit 551efc90ec
1 changed files with 2 additions and 2 deletions

View File

@ -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>();