Skip to content
Snippets Groups Projects
Unverified Commit ce1021bd authored by Tomasz Maczukin's avatar Tomasz Maczukin
Browse files

Fix go vet offence

parent e7617b6e
No related branches found
No related tags found
No related merge requests found
...@@ -29,9 +29,9 @@ func TestCacheCheckPolicy(t *testing.T) { ...@@ -29,9 +29,9 @@ func TestCacheCheckPolicy(t *testing.T) {
result, err := cache.CheckPolicy(tc.subject) result, err := cache.CheckPolicy(tc.subject)
if tc.expectErr { if tc.expectErr {
assert.Error(t, err, "case %d: %s", num, tc.description) assert.Errorf(t, err, "case %d: %s", num, tc.description)
} else { } else {
assert.NoError(t, err, "case %d: %s", num, tc.description) assert.NoErrorf(t, err, "case %d: %s", num, tc.description)
} }
assert.Equal(t, tc.expected, result, "case %d: %s", num, tc.description) assert.Equal(t, tc.expected, result, "case %d: %s", num, tc.description)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment