Skip to content

Commit

Permalink
PMM-8019 Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
artemgavrilov committed Dec 26, 2023
1 parent 87cb62e commit ca6219a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion managed/utils/tests/asserts.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func AssertGRPCError(tb testing.TB, expected *status.Status, actual error) {
return
}
err := s.Err()
if assert.NoError(tb, err) { //nolint:testifylint
if !assert.Error(tb, err) { //nolint:testifylint
return
}
assert.Equal(tb, expected.Err().Error(), err.Error()) // gives the best error message
Expand Down

0 comments on commit ca6219a

Please sign in to comment.