You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2020/10/28 12:21:52 UTC

[activemq-artemis] branch master updated: ARTEMIS-2941 - renew tasks are nearly always a little late, make this test more tolerant of that

This is an automated email from the ASF dual-hosted git repository.

gtully pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/master by this push:
     new 647151b  ARTEMIS-2941 - renew tasks are nearly always a little late, make this test more tolerant of that
647151b is described below

commit 647151b0aff8f1245735bfbc6e8d22d1cdee0afb
Author: gtully <ga...@gmail.com>
AuthorDate: Wed Oct 28 12:21:31 2020 +0000

    ARTEMIS-2941 - renew tasks are nearly always a little late, make this test more tolerant of that
---
 .../activemq/artemis/core/server/impl/jdbc/JdbcLeaseLockTest.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/artemis-server/src/test/java/org/apache/activemq/artemis/core/server/impl/jdbc/JdbcLeaseLockTest.java b/artemis-server/src/test/java/org/apache/activemq/artemis/core/server/impl/jdbc/JdbcLeaseLockTest.java
index 03febc2..1af0700 100644
--- a/artemis-server/src/test/java/org/apache/activemq/artemis/core/server/impl/jdbc/JdbcLeaseLockTest.java
+++ b/artemis-server/src/test/java/org/apache/activemq/artemis/core/server/impl/jdbc/JdbcLeaseLockTest.java
@@ -327,7 +327,7 @@ public class JdbcLeaseLockTest extends ActiveMQTestBase {
       Assert.assertEquals(0, lostLock.get());
       scheduledLeaseLock.lock().release();
       Assert.assertFalse(scheduledLeaseLock.lock().isHeldByCaller());
-      TimeUnit.MILLISECONDS.sleep(2 * scheduledLeaseLock.renewPeriodMillis());
+      TimeUnit.MILLISECONDS.sleep(3 * scheduledLeaseLock.renewPeriodMillis());
       Assert.assertThat(lostLock.get(), is(greaterThanOrEqualTo(2L)));
       scheduledLeaseLock.stop();
       executorService.shutdown();