ARTEMIS-3489 - fix JdbcLeaseLockTest fails sporadically in CI
This commit is contained in:
parent
72f9087c68
commit
1839461204
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue