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: replace 'assert' with 'require' for critical checks #2824

Merged

Conversation

JoelLau
Copy link
Contributor

@JoelLau JoelLau commented Oct 14, 2024

What does this PR do?

  • replaces assert with require on critical checks

Why is it important?

  • reduces noise in test error logs

Related issues

@JoelLau JoelLau requested a review from a team as a code owner October 14, 2024 10:42
Copy link

netlify bot commented Oct 14, 2024

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 3c77528
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/670d1fb2f453b10008891331
😎 Deploy Preview https://deploy-preview-2824--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.

@JoelLau
Copy link
Contributor Author

JoelLau commented Oct 14, 2024

hope this PR is more useful than the previous 😅

Copy link
Collaborator

@stevenh stevenh left a comment

Choose a reason for hiding this comment

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

Thanks @JoelLau one suggestion on the changes.

I would also say this is a chore vs a feature, and you have a typo in the subject :)

modules/vault/vault_test.go Outdated Show resolved Hide resolved
@JoelLau JoelLau changed the title feat: replace 'asert' with 'require' for critical checks feat: replace 'assert' with 'require' for critical checks Oct 14, 2024
@JoelLau JoelLau force-pushed the enhancement/use-testify-require branch from 7589511 to 27c90f6 Compare October 14, 2024 13:39
@JoelLau JoelLau force-pushed the enhancement/use-testify-require branch from 27c90f6 to 3c77528 Compare October 14, 2024 13:42
@JoelLau
Copy link
Contributor Author

JoelLau commented Oct 14, 2024

had to force push to fix the typo and chore tag

@stevenh stevenh changed the title feat: replace 'assert' with 'require' for critical checks chore: replace 'assert' with 'require' for critical checks Oct 14, 2024
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!

@mdelapenya mdelapenya merged commit cc71645 into testcontainers:main Oct 14, 2024
118 checks passed
@mdelapenya mdelapenya self-assigned this Oct 14, 2024
@mdelapenya mdelapenya added chore Changes that do not impact the existing functionality hacktoberfest Pull Requests accepted for Hacktoberfest. labels Oct 14, 2024
@JoelLau
Copy link
Contributor Author

JoelLau commented Oct 15, 2024

cheers 🎉

@JoelLau JoelLau deleted the enhancement/use-testify-require branch October 15, 2024 11:41
mdelapenya added a commit that referenced this pull request Oct 17, 2024
* main:
  chore: replace 'assert' with 'require' (#2827)
  chore: replace 'assert' with 'require' for critical checks (#2824)
  chore: bump ryuk to latest release (#2818)
  feat: add require for critical checks (#2812)
  chore(deps): bump release-drafter/release-drafter from 5.25.0 to 6.0.0 (#2805)
  feat: add etcd module (#2788)
  feat: add dynamodb-local module (#2799)
  fix(redpanda): wait for (#2794)
  fix(elasticsearch): wait for (#2724)
  chore: update dockercfg module (#2801)
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request Oct 18, 2024
* main:
  fix(reaper): refactor to allow retries and fix races (testcontainers#2728)
  chore: update ryuk to 0.10.2 (testcontainers#2833)
  feat: add yugabytedb module (testcontainers#2825)
  fix: update module container struct name and missing imports (testcontainers#2831)
  chore: replace 'assert' with 'require' (testcontainers#2827)
  chore: replace 'assert' with 'require' for critical checks (testcontainers#2824)
  chore: bump ryuk to latest release (testcontainers#2818)
  feat: add require for critical checks (testcontainers#2812)
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.

3 participants