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
I think a select against ctx.Done should be done in parallel to waiting on <-pfw.connectionCreated and should exit early returning ctx.Err(). If that sounds like an acceptable solution I could do a PR tomorrow.
The text was updated successfully, but these errors were encountered:
Testcontainers version
latest
Using the latest Testcontainers version?
Yes
Host OS
MacOS
Host arch
x86_64
Go version
1.22
Docker version
Docker info
What happened?
When calling testcontainers.GenericContainer the passed ctx is ignored when reaching port forwarding logic at: https://github.com/testcontainers/testcontainers-go/blob/main/port_forwarding.go#L236 .
Relevant log output
No response
Additional information
I think a select against
ctx.Done
should be done in parallel to waiting on<-pfw.connectionCreated
and should exit early returning ctx.Err(). If that sounds like an acceptable solution I could do a PR tomorrow.The text was updated successfully, but these errors were encountered: