Skip to content

Commit

Permalink
ZookeeperContainer: simplify wait condition regex
Browse files Browse the repository at this point in the history
  • Loading branch information
samahar committed Mar 31, 2020
1 parent 376827c commit 2a9d1e0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ public ZookeeperContainer() {
public ZookeeperContainer(String dockerImageName) {
super(dockerImageName);

waitStrategy = Wait.forLogMessage(".*binding to port " +
"(0\\.0\\.0\\.0)?\\/0\\.0\\.0\\.0:" + CONNECT_PORT + "\n", 1);
waitStrategy = Wait.forLogMessage(".*binding to port .*:" + CONNECT_PORT + "\n", 1);
addExposedPorts(CONNECT_PORT, ADMIN_PORT);
addEnv("ZOO_4LW_COMMANDS_WHITELIST", String.join(",", FOUR_LETTER_COMMANDS));
}
Expand Down

0 comments on commit 2a9d1e0

Please sign in to comment.