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 deae842 commit 8685720
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.argThat;
import static org.mockito.Mockito.doNothing;
import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
Expand Down Expand Up @@ -166,7 +167,7 @@ void testActivateAndDeactivate_consumerThrows() {

// When
kafkaExecutable.activate(context);
when(mockConsumer.poll(any())).thenThrow(new RuntimeException("Test exception"));
doThrow(new RuntimeException("Test exception")).when(mockConsumer).poll(any());
await()
.atMost(Duration.ofSeconds(5))
.pollInterval(Duration.ofMillis(500))
Expand Down

0 comments on commit 8685720

Please sign in to comment.