test (issue-10711): Test-style error running make test with golangci-lint version 1.44.2

Signed-off-by: Javier Solana Huertas <javiersolanahuertas@gmail.com>
Signed-off-by: jsolana <jsolana@rfranco.com>
pull/10714/head
jsolana 4 years ago
parent 5a2b4f944a
commit 9fb7b8808a

@ -88,7 +88,7 @@ func compare(actual []byte, filename string) error {
} }
expected = normalize(expected) expected = normalize(expected)
if !bytes.Equal(expected, actual) { if !bytes.Equal(expected, actual) {
return errors.Errorf("does not match golden file %s\n\nWANT:\n'%s'\n\nGOT:\n'%s'\n", filename, expected, actual) return errors.Errorf("does not match golden file %s\n\nWANT:\n'%s'\n\nGOT:\n'%s'", filename, expected, actual)
} }
return nil return nil
} }

Loading…
Cancel
Save