Author: gtully Date: Thu Dec 16 18:28:04 2010 New Revision: 1050089 URL: http://svn.apache.org/viewvc?rev=1050089&view=rev Log: allow for slow disk on test machine Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/jdbc/JDBCMessagePriorityTest.java Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/jdbc/JDBCMessagePriorityTest.java URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/jdbc/JDBCMessagePriorityTest.java?rev=1050089&r1=1050088&r2=1050089&view=diff ============================================================================== --- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/jdbc/JDBCMessagePriorityTest.java (original) +++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/jdbc/JDBCMessagePriorityTest.java Thu Dec 16 18:28:04 2010 @@ -242,8 +242,9 @@ public class JDBCMessagePriorityTest ext LOG.info("Sent another: " + TO_SEND + ", max send time: " + max); double withConsumerAve = (sum * 100 / TO_SEND); - assertTrue("max three times as slow with consumer:" + withConsumerAve + " , noConsumerMax:" + noConsumerAve, - withConsumerAve < noConsumerAve * 3); + final int reasonableMultiplier = 4; // not so reasonable, but on slow disks it can be + assertTrue("max X times as slow with consumer:" + withConsumerAve + " , noConsumerMax:" + noConsumerAve, + withConsumerAve < noConsumerAve * reasonableMultiplier); Wait.waitFor(new Wait.Condition() { public boolean isSatisified() throws Exception { LOG.info("count: " + count.get());