allow for slow disk on test machine

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1050089 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2010-12-16 18:28:04 +00:00
parent 7a7b380def
commit 72bf2f85cc

View File

@ -242,8 +242,9 @@ public class JDBCMessagePriorityTest extends MessagePriorityTest {
LOG.info("Sent another: " + TO_SEND + ", max send time: " + max); LOG.info("Sent another: " + TO_SEND + ", max send time: " + max);
double withConsumerAve = (sum * 100 / TO_SEND); double withConsumerAve = (sum * 100 / TO_SEND);
assertTrue("max three times as slow with consumer:" + withConsumerAve + " , noConsumerMax:" + noConsumerAve, final int reasonableMultiplier = 4; // not so reasonable, but on slow disks it can be
withConsumerAve < noConsumerAve * 3); assertTrue("max X times as slow with consumer:" + withConsumerAve + " , noConsumerMax:" + noConsumerAve,
withConsumerAve < noConsumerAve * reasonableMultiplier);
Wait.waitFor(new Wait.Condition() { Wait.waitFor(new Wait.Condition() {
public boolean isSatisified() throws Exception { public boolean isSatisified() throws Exception {
LOG.info("count: " + count.get()); LOG.info("count: " + count.get());