Skip to content

chore: use require.(No)Error(t,err) instead of t.Fatal(err)#2851

Merged
mdelapenya merged 1 commit intotestcontainers:mainfrom
mmorel-35:testifier/require-error
Oct 28, 2024
Merged

chore: use require.(No)Error(t,err) instead of t.Fatal(err)#2851
mdelapenya merged 1 commit intotestcontainers:mainfrom
mmorel-35:testifier/require-error

Conversation

@mmorel-35
Copy link
Copy Markdown
Contributor

@mmorel-35 mmorel-35 commented Oct 26, 2024

What does this PR do?

This uses require.(No)Error(t,err) instead of t.Fatal(err) calls

Why is it important?

This reduce the number of lines required to make an assertion.
It also make the assertion easier to understand.

Related issues

@mmorel-35 mmorel-35 requested a review from a team as a code owner October 26, 2024 12:01
@netlify
Copy link
Copy Markdown

netlify bot commented Oct 26, 2024

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 600a556
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/671cda23cb1d530008e5ffae
😎 Deploy Preview https://deploy-preview-2851--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.

Copy link
Copy Markdown
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!

@mdelapenya mdelapenya self-assigned this Oct 28, 2024
@mdelapenya mdelapenya added chore Changes that do not impact the existing functionality hacktoberfest Pull Requests accepted for Hacktoberfest. labels Oct 28, 2024
@mdelapenya mdelapenya merged commit b7511cd into testcontainers:main Oct 28, 2024
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request Oct 28, 2024
* main:
  chore: use require.(No)Error(t,err) instead of t.Fatal(err) (testcontainers#2851)
  fix: simplify fully-qualified image names (testcontainers#2846)
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request Oct 28, 2024
* main:
  chore: use require.(No)Error(t,err) instead of t.Fatal(err) (testcontainers#2851)
mdelapenya added a commit that referenced this pull request Oct 28, 2024
* main:
  fix!: data races (#2843)
  fix: mongodb replicaset should work with auth (#2847)
  chore: use require.(No)Error(t,err) instead of t.Fatal(err) (#2851)
  fix: simplify fully-qualified image names (#2846)
@mmorel-35 mmorel-35 deleted the testifier/require-error branch October 28, 2024 20:53
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 hacktoberfest Pull Requests accepted for Hacktoberfest.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants