fix: enable and fixes rules from testifylint on test package

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2024-06-29 17:28:30 +00:00
parent fa75b4371d
commit 7bccbaf996
19 changed files with 19 additions and 41 deletions

View File

@@ -108,7 +108,7 @@ second error`,
assert.Equal(t, !tc.expectNoFail, tCtx.Failed(), "Failed()")
if tc.expectError == "" {
assert.NoError(t, err)
} else if assert.NotNil(t, err) {
} else if assert.Error(t, err) {
assert.Equal(t, tc.expectError, err.Error())
}
})