Skip to content

Commit 0addbe5

Browse files
committed
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.
1 parent 1c88ba1 commit 0addbe5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/leader/JdbcLockRegistryLeaderInitiatorTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -184,15 +184,15 @@ public void testLostConnection() throws InterruptedException {
184184

185185
destroy();
186186

187-
assertThat(countingPublisher.revoked.await(20, TimeUnit.SECONDS)).isTrue();
187+
assertThat(countingPublisher.revoked.await(60, TimeUnit.SECONDS)).isTrue();
188188

189189
granted = new CountDownLatch(1);
190190
countingPublisher = new CountingPublisher(granted);
191191
initiator.setLeaderEventPublisher(countingPublisher);
192192

193193
init();
194194

195-
assertThat(granted.await(10, TimeUnit.SECONDS)).isTrue();
195+
assertThat(granted.await(60, TimeUnit.SECONDS)).isTrue();
196196

197197
initiator.stop();
198198
}

0 commit comments

Comments
 (0)