Increase wait timeout in the JdbcLockLeaderTests

Looks like latest upgrades for the CI server made virtual machines a bit
slower (less resources are allocated), so we don't have a reasonable
time for switching between threads.
This commit is contained in:
Artem Bilan
2019-06-10 14:10:54 -04:00
parent 1c88ba19d7
commit 0addbe536b

View File

@@ -184,7 +184,7 @@ public class JdbcLockRegistryLeaderInitiatorTests {
destroy();
assertThat(countingPublisher.revoked.await(20, TimeUnit.SECONDS)).isTrue();
assertThat(countingPublisher.revoked.await(60, TimeUnit.SECONDS)).isTrue();
granted = new CountDownLatch(1);
countingPublisher = new CountingPublisher(granted);
@@ -192,7 +192,7 @@ public class JdbcLockRegistryLeaderInitiatorTests {
init();
assertThat(granted.await(10, TimeUnit.SECONDS)).isTrue();
assertThat(granted.await(60, TimeUnit.SECONDS)).isTrue();
initiator.stop();
}