Skip to content

chore: use require instead of t.Fatal#2855

Merged
mdelapenya merged 3 commits intotestcontainers:mainfrom
mmorel-35:testifier/require-error
Oct 29, 2024
Merged

chore: use require instead of t.Fatal#2855
mdelapenya merged 3 commits intotestcontainers:mainfrom
mmorel-35:testifier/require-error

Conversation

@mmorel-35
Copy link
Copy Markdown
Contributor

What does this PR do?

This uses require instead of t.Fatal 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 29, 2024 07:05
@netlify
Copy link
Copy Markdown

netlify bot commented Oct 29, 2024

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit aeeb7ab
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/6720ab29558e590008e92fdd
😎 Deploy Preview https://deploy-preview-2855--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.

@mmorel-35 mmorel-35 force-pushed the testifier/require-error branch from 44d6717 to be2a5d8 Compare October 29, 2024 07:10
@mmorel-35 mmorel-35 force-pushed the testifier/require-error branch from be2a5d8 to 8424fb2 Compare October 29, 2024 09:15
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.

Just a few comments, regarding the usage of require.Zero, other than that, LGTM

@mdelapenya mdelapenya self-assigned this Oct 29, 2024
@mdelapenya mdelapenya added chore Changes that do not impact the existing functionality hacktoberfest Pull Requests accepted for Hacktoberfest. labels Oct 29, 2024
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 merged commit 09a5482 into testcontainers:main Oct 29, 2024
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request Oct 29, 2024
* main:
  chore: use require instead of t.Fatal (testcontainers#2855)
@mmorel-35 mmorel-35 deleted the testifier/require-error branch October 29, 2024 10:54
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