Skip to content

Commit

Permalink
Addressing PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
sobychacko committed Mar 28, 2024
1 parent 85fbfaf commit 8b9164b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4252,9 +4252,7 @@ public void invokeBatchInterceptorSuccessFailureOnRetry() throws Exception {
ConsumerRecords<Integer, String> consumerRecords = new ConsumerRecords<>(records);
AtomicInteger invocation = new AtomicInteger(0);
given(consumer.poll(any(Duration.class))).willAnswer(i -> {
Thread.sleep(50);
if (invocation.get() == 0) {
invocation.getAndIncrement();
if (invocation.getAndIncrement() == 0) {
return consumerRecords;
}
else {
Expand Down

0 comments on commit 8b9164b

Please sign in to comment.