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
Trying to migrate from testcontainers-python v3.7.1 to v4.4.0 and get_exposed_port isn't working as expected.
Using the construct exposed_port = engine.get_exposed_port(engine.port_to_expose) works fine in v3.7.1, giving the exposed port that can be used to access the DB.
In v4.4.0 replacing this with exposed_port = engine.get_exposed_port(engine.port) doesn't work.
When running the tests I get the error below; the port number changes on every execution.
sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 33373 failed: Connection refused
The text was updated successfully, but these errors were encountered:
ovidiu-munteanu
changed the title
Bug: Migrating from v3.x.x to v4.4.0 - get_exposed_port not working
Bug: Migrating from v3.7.1 to v4.4.0 - get_exposed_port not working
Apr 22, 2024
ovidiu-munteanu
changed the title
Bug: Migrating from v3.7.1 to v4.4.0 - get_exposed_port not working
Bug: Migrating from v3.7.1 to v4.4.0 - get_exposed_port not working
Apr 22, 2024
ovidiu-munteanu
changed the title
Bug: Migrating from v3.7.1 to v4.4.0 - get_exposed_port not working
Bug: Migrating from v3.7.1 to v4.4.0 - get_exposed_port not working
Apr 22, 2024
alexanderankin
changed the title
Bug: Migrating from v3.7.1 to v4.4.0 - get_exposed_port not working
Bug: in v4 get_exposed_port not working with IPv6 localhost (on MacOS)
Apr 22, 2024
alexanderankin
changed the title
Bug: in v4 get_exposed_port not working with IPv6 localhost (on MacOS)
Bug: in v4 get_exposed_port not working with IPv6 localhost (on MacOS, colima)
Apr 22, 2024
Trying to migrate from
testcontainers-python
v3.7.1 to v4.4.0 andget_exposed_port
isn't working as expected.Using the construct
exposed_port = engine.get_exposed_port(engine.port_to_expose)
works fine in v3.7.1, giving the exposed port that can be used to access the DB.In v4.4.0 replacing this with
exposed_port = engine.get_exposed_port(engine.port)
doesn't work.When running the tests I get the error below; the port number changes on every execution.
Full existing code for v3.7.1:
Full updated code for v4.4.0:
Runtime environment
Python 3.11.9
Darwin LDN-XXXXXXXXXX 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 arm64
Docker Info
Pip
The text was updated successfully, but these errors were encountered: