diff options
Diffstat (limited to 'plugins/http/attributes/attributes_test.go')
-rw-r--r-- | plugins/http/attributes/attributes_test.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/http/attributes/attributes_test.go b/plugins/http/attributes/attributes_test.go index a4c85eea..5622deb4 100644 --- a/plugins/http/attributes/attributes_test.go +++ b/plugins/http/attributes/attributes_test.go @@ -72,8 +72,6 @@ func TestSetAttribute(t *testing.T) { func TestSetAttributeNone(t *testing.T) { r := &http.Request{} err := Set(r, "key", "value") - if err != nil { - t.Errorf("error during the Set: error %v", err) - } + assert.Error(t, err) assert.Equal(t, Get(r, "key"), nil) } |