JAMES-2508 Reduce poll delay for RabbitMQ tests
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/b0f2ab0b Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/b0f2ab0b Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/b0f2ab0b Branch: refs/heads/master Commit: b0f2ab0bd14cc7e6785321b50533098a15513d75 Parents: cb4c42b Author: benwa <btell...@linagora.com> Authored: Tue Jul 31 11:57:20 2018 +0700 Committer: benwa <btell...@linagora.com> Committed: Wed Aug 1 18:04:45 2018 +0700 ---------------------------------------------------------------------- .../java/org/apache/james/queue/rabbitmq/RabbitMQFixture.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/b0f2ab0b/server/queue/queue-rabbitmq/src/test/java/org/apache/james/queue/rabbitmq/RabbitMQFixture.java ---------------------------------------------------------------------- diff --git a/server/queue/queue-rabbitmq/src/test/java/org/apache/james/queue/rabbitmq/RabbitMQFixture.java b/server/queue/queue-rabbitmq/src/test/java/org/apache/james/queue/rabbitmq/RabbitMQFixture.java index d13523f..b83d1f7 100644 --- a/server/queue/queue-rabbitmq/src/test/java/org/apache/james/queue/rabbitmq/RabbitMQFixture.java +++ b/server/queue/queue-rabbitmq/src/test/java/org/apache/james/queue/rabbitmq/RabbitMQFixture.java @@ -19,12 +19,13 @@ package org.apache.james.queue.rabbitmq; -import static org.awaitility.Duration.FIVE_HUNDRED_MILLISECONDS; +import static org.awaitility.Duration.ONE_HUNDRED_MILLISECONDS; import static org.awaitility.Duration.ONE_MINUTE; import org.awaitility.Awaitility; import org.awaitility.Duration; import org.awaitility.core.ConditionFactory; + import com.rabbitmq.client.AMQP; public class RabbitMQFixture { @@ -38,7 +39,7 @@ public class RabbitMQFixture { public static final boolean AUTO_DELETE = true; public static final String WORK_QUEUE = "workQueue"; - public static Duration slowPacedPollInterval = FIVE_HUNDRED_MILLISECONDS; + public static Duration slowPacedPollInterval = ONE_HUNDRED_MILLISECONDS; public static ConditionFactory calmlyAwait = Awaitility.with() .pollInterval(slowPacedPollInterval) .and() --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org