Skip to content

Commit

Permalink
fix CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
conker84 committed Apr 2, 2020
1 parent 2ca72aa commit 0df75fa
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 @@ -68,7 +68,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))
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 @@ -51,7 +51,7 @@ class KafkaEventRouterNoTopicAutocreationIT {
Assume.assumeTrue("Kafka container has to exist", exists)
Assume.assumeTrue("Kafka must be running", ::kafka.isInitialized && kafka.isRunning)

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

0 comments on commit 0df75fa

Please sign in to comment.