Tried setting ryuk.container.timeout by creating a testcontainers.properties that contains the following:
ryuk.container.timeout=120
This is successfully picked up, but when TestcontainersConfiguration#getRyukTimeout is called is calls properties.getOrDefault, which returns a string "120" which is attempted to be cast to an Integer. This results in the following error:
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
A fix for this is to change TestcontainersConfiguration#getRyukTimeout to
public Integer getRyukTimeout() {
return Integer.parseInt((String) properties.getOrDefault("ryuk.container.timeout", "30"));
}
Tried setting
ryuk.container.timeoutby creating atestcontainers.propertiesthat contains the following:This is successfully picked up, but when TestcontainersConfiguration#getRyukTimeout is called is calls
properties.getOrDefault, which returns a string "120" which is attempted to be cast to anInteger. This results in the following error:A fix for this is to change TestcontainersConfiguration#getRyukTimeout to