fix: container.Endpoint and wait.FortHTTP to use lowest internal port#2641
fix: container.Endpoint and wait.FortHTTP to use lowest internal port#2641mdelapenya merged 1 commit intotestcontainers:mainfrom stevenh:fix/endpoint
Conversation
✅ Deploy Preview for testcontainers-go ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
Hi @stevenh do you think we should mark this as a breaking change, as we are changing the docs from Other than that, LGTM |
I don't think so as I believe that original intent of |
|
Wdyt if we change the title to |
Updated the title to something similar, which I hope is a little bit more concise, let me know what you think? |
Ensure Container.Endpoint returns the lowest numbered aka first port there is more than one exposed. Ensure that wait.ForHTTP uses the lowest numbered aka first port when there is more than one exposed. Prior to this a random port would be returned leading to unpredictable results. Clarify which port is uses by using lowest vs first, which could otherwise be interpreted as the first one specified. Fixed: #2640
* main: feat: add grafana-lgtm module (#2660) Added valkey module (#2639) fix: container.Endpoint and wait.FortHTTP to use lowest internal port (#2641) chore: test cleanups (#2657) docs: fix compilation of examples (#2656) feat: add custom container registry substitutor (#2647) fix: couchbase containers intermittently hang on startup (#2650) chore(deps): bump Ryuk to 0.8.1 (#2648) fix: retry on label error (#2644) perf: optimise docker authentication config lookup (#2646)
* main: chore: print Docker Info labels in banner (testcontainers#2681) fix: incorrect parsing of exposedPorts in readiness check (testcontainers#2658) feat: add grafana-lgtm module (testcontainers#2660) Added valkey module (testcontainers#2639) fix: container.Endpoint and wait.FortHTTP to use lowest internal port (testcontainers#2641)
Ensure
Container.Endpointreturns the lowest numbered aka first port when there is more than one exposed.Ensure that
wait.ForHTTPuses the lowest numbered aka first port when there is more than one exposed.Prior to this a random port would be returned leading to unpredictable
results.
Fixed: #2640