Skip to content

Commit e257bac

Browse files
authored
Fix race condition in external port check (#4597)
Makes Awaitility ignore exception (which are expected to occur) during checking external ports.
1 parent a541886 commit e257bac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/main/java/org/testcontainers/containers/wait/strategy/HostPortWaitStrategy.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ protected void waitUntilReady() {
6868
.pollInSameThread()
6969
.pollInterval(Duration.ofMillis(100))
7070
.pollDelay(Duration.ZERO)
71+
.ignoreExceptions()
7172
.forever()
7273
.until(externalCheck);
7374

0 commit comments

Comments
 (0)