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
JDBC - MSSQL - getLivenessCheckPortNumbers() shouldn't that be the mapped port and not the internal? #5283
Activity
kiview commentedon Jul 11, 2022
Hey @npetzall, thanks for raising this issue. Your observation seems correct. In which scenarios would this lead to issues for you?
npetzall commentedon Jul 11, 2022
If I remember correctly I couldn't use the MSSQLServerContainer and had to extend it. Since it failed the liveliness check.
This was on Windows so testcontainers tried to connect to 1433 or something like that but it was reachable on a different port.
npetzall commentedon Jul 11, 2022
I do also have a a custom wait strategy
So it might be related to changes done that affect what is exposed or how the strategies work.
kiview commentedon Jul 11, 2022
Thanks, this example makes sense.
npetzall commentedon Jul 11, 2022
It's a bit tricky since the JavaDoc only says ports to check if ready, but Wait.forListeningPort seems to assume that it's a published port.
aidando73 commentedon Oct 4, 2022
Thank you all for your contributions. This issue should be closed now. It's in the 1.17.4 release