|
@Override |
|
public Set<Integer> getLivenessCheckPortNumbers() { |
|
return Sets.newHashSet(MS_SQL_SERVER_PORT); |
|
} |
Mysql has the ports mapped
|
@NotNull |
|
@Override |
|
protected Set<Integer> getLivenessCheckPorts() { |
|
return new HashSet<>(getMappedPort(MYSQL_PORT)); |
|
} |
If the overrides are removed you would receive mapped ports of the exposedPorts.
testcontainers-java/modules/mssqlserver/src/main/java/org/testcontainers/containers/MSSQLServerContainer.java
Lines 64 to 67 in 600d235
Mysql has the ports mapped
testcontainers-java/modules/mysql/src/main/java/org/testcontainers/containers/MySQLContainer.java
Lines 56 to 60 in 600d235
If the overrides are removed you would receive mapped ports of the exposedPorts.