Increase timeout in Debezium tests

This commit is contained in:
Artem Bilan
2024-07-16 13:43:44 -04:00
parent eac8c31a1d
commit c4ec7d5f22
2 changed files with 3 additions and 3 deletions

View File

@@ -60,7 +60,7 @@ public class DebeziumDslTests implements DebeziumMySqlTestContainer {
@Test
void dslFromBuilder() throws InterruptedException {
assertThat(config.latch.await(30, TimeUnit.SECONDS)).isTrue();
assertThat(config.latch.await(1, TimeUnit.MINUTES)).isTrue();
assertThat(config.payloads).hasSize(EXPECTED_DB_TX_COUNT);
assertThat(config.headerKeys).hasSize(EXPECTED_DB_TX_COUNT);
@@ -74,7 +74,7 @@ public class DebeziumDslTests implements DebeziumMySqlTestContainer {
@Test
void dslBatch() throws InterruptedException {
assertThat(config.batchLatch.await(30, TimeUnit.SECONDS)).isTrue();
assertThat(config.batchLatch.await(1, TimeUnit.MINUTES)).isTrue();
assertThat(config.bachPayloads)
.as("Sum of the message payload counts should correspond to the number of DB transactions")
.hasSize(EXPECTED_DB_TX_COUNT);

View File

@@ -63,7 +63,7 @@ public class DebeziumBatchTests implements DebeziumMySqlTestContainer {
@Test
void batchMode() {
await().atMost(Duration.ofSeconds(30)).until(this::receivePayloads, (count) -> count == EXPECTED_DB_TX_COUNT);
await().atMost(Duration.ofMinutes(1)).until(this::receivePayloads, (count) -> count == EXPECTED_DB_TX_COUNT);
assertThat(allPayload).hasSize(EXPECTED_DB_TX_COUNT);
assertThat(batchCount).isLessThan(EXPECTED_DB_TX_COUNT);