Skip to content

Commit 1469b22

Browse files
authored
Make Bolt log wait strategy more lenient (#4455)
Fixes #4454
1 parent ce57df6 commit 1469b22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/neo4j/src/main/java/org/testcontainers/containers/Neo4jContainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public Neo4jContainer(final DockerImageName dockerImageName) {
9191
dockerImageName.assertCompatibleWith(DEFAULT_IMAGE_NAME);
9292

9393
WaitStrategy waitForBolt = new LogMessageWaitStrategy()
94-
.withRegEx(String.format(".*Bolt enabled on 0\\.0\\.0\\.0:%d\\.\n", DEFAULT_BOLT_PORT));
94+
.withRegEx(String.format(".*Bolt enabled on .*:%d\\.\n", DEFAULT_BOLT_PORT));
9595
WaitStrategy waitForHttp = new HttpWaitStrategy()
9696
.forPort(DEFAULT_HTTP_PORT)
9797
.forStatusCodeMatching(response -> response == HTTP_OK);

0 commit comments

Comments
 (0)