Skip to content

Commit c4ec7d5

Browse files
committed
Increase timeout in Debezium tests
1 parent eac8c31 commit c4ec7d5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spring-integration-debezium/src/test/java/org/springframework/integration/debezium/dsl/DebeziumDslTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public class DebeziumDslTests implements DebeziumMySqlTestContainer {
6060

6161
@Test
6262
void dslFromBuilder() throws InterruptedException {
63-
assertThat(config.latch.await(30, TimeUnit.SECONDS)).isTrue();
63+
assertThat(config.latch.await(1, TimeUnit.MINUTES)).isTrue();
6464
assertThat(config.payloads).hasSize(EXPECTED_DB_TX_COUNT);
6565
assertThat(config.headerKeys).hasSize(EXPECTED_DB_TX_COUNT);
6666

@@ -74,7 +74,7 @@ void dslFromBuilder() throws InterruptedException {
7474

7575
@Test
7676
void dslBatch() throws InterruptedException {
77-
assertThat(config.batchLatch.await(30, TimeUnit.SECONDS)).isTrue();
77+
assertThat(config.batchLatch.await(1, TimeUnit.MINUTES)).isTrue();
7878
assertThat(config.bachPayloads)
7979
.as("Sum of the message payload counts should correspond to the number of DB transactions")
8080
.hasSize(EXPECTED_DB_TX_COUNT);

spring-integration-debezium/src/test/java/org/springframework/integration/debezium/it/DebeziumBatchTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public class DebeziumBatchTests implements DebeziumMySqlTestContainer {
6363

6464
@Test
6565
void batchMode() {
66-
await().atMost(Duration.ofSeconds(30)).until(this::receivePayloads, (count) -> count == EXPECTED_DB_TX_COUNT);
66+
await().atMost(Duration.ofMinutes(1)).until(this::receivePayloads, (count) -> count == EXPECTED_DB_TX_COUNT);
6767

6868
assertThat(allPayload).hasSize(EXPECTED_DB_TX_COUNT);
6969
assertThat(batchCount).isLessThan(EXPECTED_DB_TX_COUNT);

0 commit comments

Comments
 (0)