Skip to content

Commit a667171

Browse files
committed
Use unique Kafka consumer groups in tests
so, it doesn't cause unexpected rebalances in the global shared embedded Kafka broker
1 parent 6b31d97 commit a667171

File tree

1 file changed

+2
-2
lines changed
  • spring-integration-kafka/src/test/kotlin/org/springframework/integration/kafka/dsl/kotlin

1 file changed

+2
-2
lines changed

spring-integration-kafka/src/test/kotlin/org/springframework/integration/kafka/dsl/kotlin/KafkaDslKotlinTests.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ class KafkaDslKotlinTests {
328328

329329
private fun replyContainer(): GenericMessageListenerContainer<Int, String> {
330330
val containerProperties = ContainerProperties(TEST_TOPIC5)
331-
containerProperties.setGroupId("outGate")
331+
containerProperties.setGroupId("kotlinOutGate")
332332
containerProperties.setConsumerRebalanceListener(object : ConsumerRebalanceListener {
333333

334334
override fun onPartitionsRevoked(partitions: Collection<TopicPartition>) {
@@ -352,7 +352,7 @@ class KafkaDslKotlinTests {
352352
private fun containerProperties() =
353353
ContainerProperties(TEST_TOPIC4)
354354
.also {
355-
it.setGroupId("inGateGroup")
355+
it.setGroupId("kotlinInGateGroup")
356356
}
357357

358358
}

0 commit comments

Comments
 (0)