From ce1021bd8b787d7c47e682dab378924fae521a71 Mon Sep 17 00:00:00 2001 From: Tomasz Maczukin <tomasz@maczukin.pl> Date: Fri, 14 Jul 2017 22:20:05 +0200 Subject: [PATCH] Fix go vet offence --- common/network_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/network_test.go b/common/network_test.go index 516bad23c..14e768994 100644 --- a/common/network_test.go +++ b/common/network_test.go @@ -29,9 +29,9 @@ func TestCacheCheckPolicy(t *testing.T) { result, err := cache.CheckPolicy(tc.subject) if tc.expectErr { - assert.Error(t, err, "case %d: %s", num, tc.description) + assert.Errorf(t, err, "case %d: %s", num, tc.description) } 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) -- GitLab