Skip to content

Commit

Permalink
try fixing the integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
chillleader committed Jul 15, 2024
1 parent 1d7acfe commit f746bb3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ void testActivateAndDeactivate_consumerThrows() {
when(mockConsumer.poll(any())).thenThrow(new RuntimeException("Test exception"));
await()
.atMost(Duration.ofSeconds(5))
.until(() -> !kafkaExecutable.kafkaConnectorConsumer.shouldLoop);
.pollInterval(Duration.ofMillis(500))
.untilAsserted(() -> assertFalse(kafkaExecutable.kafkaConnectorConsumer.shouldLoop));
kafkaExecutable.deactivate();

// Then
Expand Down

0 comments on commit f746bb3

Please sign in to comment.