Skip to content

Commit f4a0a23

Browse files
committed
Fix test
https://build.spring.io/browse/SK-MAS-573/ Use a unique group for the `bytesKey()` listener.
1 parent 2ef2ed5 commit f4a0a23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-kafka/src/test/java/org/springframework/kafka/annotation/EnableKafkaIntegrationTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1604,7 +1604,8 @@ public void ackWithAutoContainerListener(String payload, Acknowledgment ack) {
16041604
// empty
16051605
}
16061606

1607-
@KafkaListener(topics = "annotated36", containerFactory = "bytesStringListenerContainerFactory")
1607+
@KafkaListener(id = "bytesKey", topics = "annotated36",
1608+
containerFactory = "bytesStringListenerContainerFactory")
16081609
public void bytesKey(String in, @Header(KafkaHeaders.RECEIVED_MESSAGE_KEY) String key) {
16091610
this.convertedKey = key;
16101611
this.keyLatch.countDown();

0 commit comments

Comments
 (0)