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 2021/11/01 09:35:47 UTC

[activemq-artemis] branch main updated: ARTEMIS-3489 - fix JdbcLeaseLockTest fails sporadically in CI

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

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


The following commit(s) were added to refs/heads/main by this push:
     new 1839461  ARTEMIS-3489 - fix JdbcLeaseLockTest fails sporadically in CI
1839461 is described below

commit 1839461204da4fa8d0e97d1b6dc53d4d8f206c5d
Author: gtully <ga...@gmail.com>
AuthorDate: Fri Oct 29 17:22:55 2021 +0100

    ARTEMIS-3489 - fix JdbcLeaseLockTest fails sporadically in CI
---
 .../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 1af0700..84e4dc6 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
@@ -248,7 +248,7 @@ public class JdbcLeaseLockTest extends ActiveMQTestBase {
 
    @Test
    public void shouldRenewExpiredLockNotAcquiredByOthers() throws InterruptedException {
-      final LeaseLock lock = lock(10);
+      final LeaseLock lock = lock(500);
       Assert.assertTrue("lock is not owned by anyone", lock.tryAcquire());
       try {
          Thread.sleep(lock.expirationMillis() * 2);