File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
spring-kafka/src/test/java/org/springframework/kafka/listener Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright 2018-2022 the original author or authors.
2+ * Copyright 2018-2024 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -77,7 +77,8 @@ public void testOOMCMLC() throws Exception {
7777 containerProps .setClientId ("clientId" );
7878 ConcurrentMessageListenerContainer <Integer , String > container =
7979 new ConcurrentMessageListenerContainer <>(cf , containerProps );
80- CountDownLatch stopLatch = new CountDownLatch (1 );
80+ // concurrent container publishes one time, child container publishes concurrency time.
81+ CountDownLatch stopLatch = new CountDownLatch (2 );
8182 container .setApplicationEventPublisher (e -> {
8283 if (e instanceof ContainerStoppedEvent ) {
8384 stopLatch .countDown ();
You can’t perform that action at this time.
0 commit comments