Skip to content

Commit 0df75fa

Browse files
committed
fix CI build
1 parent 2ca72aa commit 0df75fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

consumer/src/test/kotlin/integrations/kafka/KafkaEventSinkNoTopicAutocreationIT.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class KafkaEventSinkNoTopicAutoCreationIT {
6868
fun `should consume only the registered topic`() {
6969
// given
7070
val topic = "shouldWriteCypherQuery"
71-
val client = AdminClient.create(mapOf("bootstrap.servers" to "localhost:" + kafka.firstMappedPort))
71+
val client = AdminClient.create(mapOf("bootstrap.servers" to kafka.bootstrapServers))
7272
val expectedTopics = listOf(topic)
7373
client.createTopics(expectedTopics.map { NewTopic(it, 1, 1) })
7474
.all()

producer/src/test/kotlin/streams/integrations/KafkaEventRouterNoTopicAutocreationIT.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class KafkaEventRouterNoTopicAutocreationIT {
5151
Assume.assumeTrue("Kafka container has to exist", exists)
5252
Assume.assumeTrue("Kafka must be running", ::kafka.isInitialized && kafka.isRunning)
5353

54-
val client = AdminClient.create(mapOf("bootstrap.servers" to "localhost:" + kafka.firstMappedPort))
54+
val client = AdminClient.create(mapOf("bootstrap.servers" to kafka.bootstrapServers))
5555
val topicsToCreate = listOf("person")
5656
client.createTopics(topicsToCreate.map { NewTopic(it, 1, 1) })
5757
.all()

0 commit comments

Comments
 (0)