File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
modules/kafka/src/main/java/org/testcontainers/kafka Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,9 @@ protected void containerIsStarting(InspectContainerResponse containerInfo) {
5252 String plaintextAdvertisedListener ;
5353 if (listeners .isEmpty () && networkAliases .size () > 1 ) {
5454 // 0 is the random network alias generated by GenericContainer
55- plaintextAdvertisedListener =
56- "PLAINTEXT://" + networkAliases .get (1 ) + ":" + KafkaHelper .KAFKA_PORT ;
55+ plaintextAdvertisedListener = "PLAINTEXT://" + networkAliases .get (1 ) + ":" + KafkaHelper .KAFKA_PORT ;
5756 } else {
58- plaintextAdvertisedListener =
59- "PLAINTEXT://" + getBootstrapServers ();
57+ plaintextAdvertisedListener = "PLAINTEXT://" + getBootstrapServers ();
6058 }
6159
6260 String brokerAdvertisedListener = String .format (
Original file line number Diff line number Diff line change @@ -58,11 +58,9 @@ protected void containerIsStarting(InspectContainerResponse containerInfo) {
5858 String plaintextAdvertisedListener ;
5959 if (listeners .isEmpty () && networkAliases .size () > 1 ) {
6060 // 0 is the random network alias generated by GenericContainer
61- plaintextAdvertisedListener =
62- "PLAINTEXT://" + networkAliases .get (1 ) + ":" + KafkaHelper .KAFKA_PORT ;
61+ plaintextAdvertisedListener = "PLAINTEXT://" + networkAliases .get (1 ) + ":" + KafkaHelper .KAFKA_PORT ;
6362 } else {
64- plaintextAdvertisedListener =
65- "PLAINTEXT://" + getBootstrapServers ();
63+ plaintextAdvertisedListener = "PLAINTEXT://" + getBootstrapServers ();
6664 }
6765
6866 String brokerAdvertisedListener = String .format (
You can’t perform that action at this time.
0 commit comments