Skip to content
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: avoid using of log.Fatal in main in tests #2739

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

stevenh
Copy link
Collaborator

@stevenh stevenh commented Aug 19, 2024

Remove use of log fatal which prevents defers and correct order of Write and WriteHeader.

@stevenh stevenh requested a review from a team as a code owner August 19, 2024 19:50
Copy link

netlify bot commented Aug 19, 2024

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit ab83d93
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/66c4839ebd0f690008708dda
😎 Deploy Preview https://deploy-preview-2739--testcontainers-go.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Remove use of log fatal which prevents defers.

Correct order of Write and WriteHeader a update test to validate the
correct behaviour, leveraging require.
Copy link
Member

@mdelapenya mdelapenya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

I'm changing the title to chore as this is not user-facing, but internal to the tests of the project.

@mdelapenya mdelapenya changed the title fix: use of log.Fatal in main chore: avoid using of log.Fatal in main Aug 21, 2024
@mdelapenya mdelapenya changed the title chore: avoid using of log.Fatal in main chore: avoid using of log.Fatal in main in tests Aug 21, 2024
@mdelapenya mdelapenya merged commit 6ab1134 into testcontainers:main Aug 21, 2024
112 checks passed
@mdelapenya mdelapenya self-assigned this Aug 21, 2024
@mdelapenya mdelapenya added the chore Changes that do not impact the existing functionality label Aug 21, 2024
@stevenh stevenh deleted the fix/log-fatal branch August 21, 2024 18:19
mdelapenya added a commit that referenced this pull request Aug 22, 2024
* main:
  chore(deps): bump github/codeql-action from 3.24.9 to 3.25.15 (#2677)
  fix: use of log.Fatal in main (#2739)
  chore: prepare for next minor development cycle (0.34.0)
  chore: use new version (v0.33.0) in modules and examples
  fix: authentication tests on WSL (#2706)
  fix(registry): compatibility with WSL (#2705)
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request Aug 26, 2024
* main:
  chore(deps): bump minimal Go version from 1.21 to 1.22 (testcontainers#2743)
  chore(deps): bump github/codeql-action from 3.24.9 to 3.25.15 (testcontainers#2677)
  fix: use of log.Fatal in main (testcontainers#2739)
  chore: prepare for next minor development cycle (0.34.0)
  chore: use new version (v0.33.0) in modules and examples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Changes that do not impact the existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants