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 ErrorContains and EqualError #35483

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

mmorel-35
Copy link
Contributor

Description

Testifylint doesn't support it yet.
This replaces Contains(t, err.Error() by ErrorContains(t, err and Equal(t, err.Error() by EqualError(t, err
As they both check for nil error it becomes useless to check it yourself without having defined a custom message

@songy23 songy23 added the ci-cd CI, CD, testing, build issues label Sep 30, 2024
@crobert-1 crobert-1 added the ready to merge Code review completed; ready to merge by maintainers label Sep 30, 2024
@djaglowski djaglowski merged commit 7503861 into open-telemetry:main Sep 30, 2024
172 checks passed
@github-actions github-actions bot added this to the next release milestone Sep 30, 2024
@mmorel-35 mmorel-35 deleted the testify/error-contains branch September 30, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants