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: use require.Len instead of assert.Len #2854

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

mmorel-35
Copy link
Contributor

What does this PR do?

This uses require.Len instead of assert.Len calls when element is reused for tests.

Why is it important?

When assert.Len is used, this is generally to check the length of a list that is generally used in at least one other test.

Related issues

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
@mmorel-35 mmorel-35 requested a review from a team as a code owner October 29, 2024 06:12
Copy link

netlify bot commented Oct 29, 2024

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 8ccc448
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/67207ce720375000087728c9
😎 Deploy Preview https://deploy-preview-2854--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
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, great job, as always!

@mdelapenya mdelapenya self-assigned this Oct 29, 2024
@mdelapenya mdelapenya added the chore Changes that do not impact the existing functionality label Oct 29, 2024
@mdelapenya mdelapenya merged commit 950d06b into testcontainers:main Oct 29, 2024
122 checks passed
@mmorel-35 mmorel-35 deleted the require-len branch October 29, 2024 09:15
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request Oct 29, 2024
* main:
  chore: use require.Len instead of assert.Len (testcontainers#2854)
  chore: bump ryuk to 0.11.0 (testcontainers#2853)
  chore: enable usestdlibvars linter (testcontainers#2850)
  fix(compose): container initialisation (testcontainers#2844)
  fix!: data races (testcontainers#2843)
  fix: mongodb replicaset should work with auth (testcontainers#2847)
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