ARTEMIS-2941 - renew tasks are nearly always a little late, make this test more tolerant of that

This commit is contained in:
gtully 2020-10-28 12:21:31 +00:00
parent 0c5d0303ba
commit 647151b0af
1 changed files with 1 additions and 1 deletions

View File

@ -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();