Skip to content

Commit 369ffa6

Browse files
committed
GH-1111 Fix commit latch count
1 parent bdd89b6 commit 369ffa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-kafka/src/test/java/org/springframework/kafka/listener/KafkaMessageListenerContainerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2064,7 +2064,7 @@ public void testPauseResume() throws Exception {
20642064
}
20652065
return first.getAndSet(false) ? consumerRecords : emptyRecords;
20662066
});
2067-
final CountDownLatch commitLatch = new CountDownLatch(2);
2067+
final CountDownLatch commitLatch = new CountDownLatch(3);
20682068
willAnswer(i -> {
20692069
commitLatch.countDown();
20702070
return null;

0 commit comments

Comments
 (0)