Skip to content

Commit b610044

Browse files
Merge pull request #35 from bitxon/bugfix/allow-to-override-waiting-strategy
Allow to override waiting strategy and waiting time
2 parents c987c9d + ba3371c commit b610044

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/wiremock/integrations/testcontainers/WireMockContainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public WireMockContainer(String version) {
7777
public WireMockContainer(String image, String version) {
7878
super(image + ":" + version);
7979
wireMockArgs = new StringBuilder();
80+
setWaitStrategy(DEFAULT_WAITER);
8081
}
8182

8283
/**
@@ -200,7 +201,6 @@ public Integer getServerPort() {
200201
protected void configure() {
201202
super.configure();
202203
withExposedPorts(PORT);
203-
waitingFor(DEFAULT_WAITER);
204204
for (Stub stub : mappingStubs.values()) {
205205
withCopyToContainer(Transferable.of(stub.json), MAPPINGS_DIR + stub.name + ".json");
206206
}

0 commit comments

Comments
 (0)