-
-
Notifications
You must be signed in to change notification settings - Fork 512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: recover from panic in SkipIfProviderIsNotHealthy
test helper function
#2939
chore: recover from panic in SkipIfProviderIsNotHealthy
test helper function
#2939
Conversation
✅ Deploy Preview for testcontainers-go ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
SkipIfProviderIsNotHealthy
test helper functionSkipIfProviderIsNotHealthy
test helper function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just suggesting fixing an existing typo.
Thanks!
Co-authored-by: Manuel de la Peña <[email protected]>
* Move t.Helper before defer * Include value of r in skip statement * Fix more typos
aaa2733
to
cb5e5dc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
What does this PR do?
Recovers from panic (in a
defer
statement) and skips the tests if necessary.Why is it important?
Attempting to skip tests on runners where Docker is not usable using
github.com/testcontainers/testcontainers-go.SkipIfProviderIsNotHealthy
is still failing unconditionally.Related issues
Closes #2859
How to test this PR
Run the tests in CI/CD for
macos-latest
runners in GitHub Actions and observe if there any still any panics.Follow-ups