You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
addExposedPort fails when called after withExposedPorts #451
In my use case I configure a container using withExposedPorts method and then process this container in common code by exposing one more port. I would like to call addExposedPort, but this fails with exception:
java.lang.UnsupportedOperationException
at java.util.AbstractList.add(AbstractList.java:148)
at java.util.AbstractList.add(AbstractList.java:108)
at org.testcontainers.containers.GenericContainer.addExposedPort(GenericContainer.java:532)
So I have to first get all exposed ports, add new one and call withExposedPorts again.
If the code in withExposedPorts would be changed from
Activity
using newArrayList for withExposedPorts method in order to allow addE…
using newArrayList for withExposedPorts method in order to allow addE…