Skip to content

Commit

Permalink
Merge branch '3.5' of github.com:neo4j-contrib/neo4j-streams into 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mneedham committed Jan 23, 2020
2 parents d9cb728 + 4532bbd commit 5975d40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class KafkaEventSinkNoTopicAutoCreationIT {
fun `should consume only the registered topic`() {
// given
val topic = "shouldWriteCypherQuery"
val client = AdminClient.create(mapOf("bootstrap.servers" to "localhost:" + kafka.firstMappedPort))
val client = AdminClient.create(mapOf("bootstrap.servers" to kafka.bootstrapServers.substring("PLAINTEXT://".length)))
val expectedTopics = listOf(topic)
client.createTopics(expectedTopics.map { NewTopic(it, 1, 1) })
.all()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class KafkaEventRouterNoTopicAutocreationIT {
Assume.assumeTrue("Kafka container has to exist", exists)
Assume.assumeTrue("Kafka must be running", kafka.isRunning)

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

0 comments on commit 5975d40

Please sign in to comment.