Replace deprecated param (#15)

* Replace deprecated param

* Bump version
This commit is contained in:
Egor Cherniak 2022-07-18 10:26:09 +03:00 committed by GitHub
parent 411ae01c49
commit 9158908700
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
<packaging>jar</packaging>
<artifactId>testcontainers-annotations</artifactId>
<version>1.4.1</version>
<version>1.4.2</version>
<name>testcontainers-annotations</name>
<description>testcontainers-annotations</description>

View File

@ -172,7 +172,7 @@ public class KafkaTestcontainerExtension implements BeforeAllCallback, AfterAllC
}
private String execInContainerKafkaTopicsListCommand(KafkaContainer container) {
var kafkaTopicsListCommand = "/usr/bin/kafka-topics --zookeeper localhost:2181 --list";
var kafkaTopicsListCommand = "/usr/bin/kafka-topics --bootstrap-server localhost:9092 --list";
try {
var stdout = container.execInContainer("/bin/sh", "-c", kafkaTopicsListCommand)
.getStdout();