-
Notifications
You must be signed in to change notification settings - Fork 393
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
Remove superfluous err argument in NoError test function #1935
Conversation
@@ -52,7 +52,7 @@ func TestResourceAzureBlobMountCreate(t *testing.T) { | |||
}, | |||
Create: true, | |||
}.Apply(t) | |||
require.NoError(t, err, err) // TODO: global search-replace for NoError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: someone before me may have meant to change this before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #1935 +/- ##
=======================================
Coverage 90.19% 90.19%
=======================================
Files 146 146
Lines 11843 11844 +1
=======================================
+ Hits 10682 10683 +1
Misses 748 748
Partials 413 413
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you .ApplyNoError
for resource fixtures? global replace for other places looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please don't add *schema.ResourceData
to ApplyNoError
. We have ApplyAndExpectData
for resource data assertions
@nfx Output of |
I noticed the duplicate message in an assertion failure. This is caused by passing
err
as message toNoError
.