From b9cfc4392946399ad8b25aefee1c9ac88007b39c Mon Sep 17 00:00:00 2001 From: Matt Ward Date: Mon, 13 Feb 2012 09:34:50 +0000 Subject: [PATCH] Lengthened timeout on test to help avoid build errors. I'm aware that timer-based tests are best avoided and will try to replace with something better if possible! git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@33839 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../java/org/alfresco/repo/cluster/MessengerTestHelper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/java/org/alfresco/repo/cluster/MessengerTestHelper.java b/source/java/org/alfresco/repo/cluster/MessengerTestHelper.java index 4cd9dcc85e..58b49254cf 100644 --- a/source/java/org/alfresco/repo/cluster/MessengerTestHelper.java +++ b/source/java/org/alfresco/repo/cluster/MessengerTestHelper.java @@ -30,7 +30,7 @@ import static org.junit.Assert.*; public class MessengerTestHelper { private String receivedMsg; - private final static int SLEEP_MILLIS = 5; + private final static int SLEEP_MILLIS = 50; public MessengerTestHelper() @@ -41,7 +41,7 @@ public class MessengerTestHelper /** * Try to avoid intermitten test failures by trying multiple times. Hopefully the messge * will have been received after the very first sleep, but in a slow environment it may take longer. - * This also allows the sleep time to be lower - rather than waiting for say 500 ms, we can try 10 times + * This also allows the sleep time to be lower - rather than waiting for say 50 ms, we can try 10 times * at 5 ms - with a chance that we can return after the initial 5 ms. * * @param expectedMsg @@ -51,7 +51,7 @@ public class MessengerTestHelper { int tries = 0; - while (tries < 10) + while (tries < 30) { try {