Skip to content

Commit 3e4e5f2

Browse files
authored
Fix a regression in OracleContainer introduced in testcontainers#2473 (testcontainers#2612)
1 parent 12fef37 commit 3e4e5f2

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

modules/oracle-xe/src/main/java/org/testcontainers/containers/OracleContainer.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,15 @@ public OracleContainer() {
3838

3939
public OracleContainer(String dockerImageName) {
4040
super(dockerImageName);
41-
withStartupTimeoutSeconds(DEFAULT_STARTUP_TIMEOUT_SECONDS);
42-
withConnectTimeoutSeconds(DEFAULT_CONNECT_TIMEOUT_SECONDS);
41+
preconfigure();
4342
}
4443

4544
public OracleContainer(Future<String> dockerImageName) {
4645
super(dockerImageName);
46+
preconfigure();
47+
}
48+
49+
private void preconfigure() {
4750
withStartupTimeoutSeconds(DEFAULT_STARTUP_TIMEOUT_SECONDS);
4851
withConnectTimeoutSeconds(DEFAULT_CONNECT_TIMEOUT_SECONDS);
4952
addExposedPorts(ORACLE_PORT, APEX_HTTP_PORT);

0 commit comments

Comments
 (0)