Skip to content

Commit 5975d40

Browse files
committed
Merge branch '3.5' of github.com:neo4j-contrib/neo4j-streams into 3.5
2 parents d9cb728 + 4532bbd commit 5975d40

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
@@ -67,7 +67,7 @@ class KafkaEventSinkNoTopicAutoCreationIT {
6767
fun `should consume only the registered topic`() {
6868
// given
6969
val topic = "shouldWriteCypherQuery"
70-
val client = AdminClient.create(mapOf("bootstrap.servers" to "localhost:" + kafka.firstMappedPort))
70+
val client = AdminClient.create(mapOf("bootstrap.servers" to kafka.bootstrapServers.substring("PLAINTEXT://".length)))
7171
val expectedTopics = listOf(topic)
7272
client.createTopics(expectedTopics.map { NewTopic(it, 1, 1) })
7373
.all()

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

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

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

0 commit comments

Comments
 (0)