Skip to content

Commit eb2920d

Browse files
committed
I'm using docker-compose locally, with an extra advertised.listeners
Something like Yolean/kubernetes-kafka#78
1 parent 362b6c5 commit eb2920d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/itest/java/se/yolean/kafka/topic/client/service/IntegrationTestConfigLocalhost.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77

88
public class IntegrationTestConfigLocalhost extends AbstractModule {
99

10+
public static final int KAFKA_LISTENER_PORT = 9094;
11+
1012
@Override
1113
protected void configure() {
12-
bind(String.class).annotatedWith(Names.named("config:bootstrap")).toInstance("localhost:9092");
14+
bind(String.class).annotatedWith(Names.named("config:bootstrap")).toInstance("localhost:" + KAFKA_LISTENER_PORT);
1315

1416
bind(String.class).annotatedWith(Names.named("config:adminTopic")).toInstance("_topic_declarations");
1517

0 commit comments

Comments
 (0)