From 2f8911a81882c6ae78980bc079113141a60429ca Mon Sep 17 00:00:00 2001 From: James Sheppard Date: Sun, 7 May 2023 16:45:55 +0000 Subject: [PATCH] use fmt pkg for Errorf call in test.go Signed-off-by: James Sheppard --- internal/test/test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/test/test.go b/internal/test/test.go index e6821282c..558e417c4 100644 --- a/internal/test/test.go +++ b/internal/test/test.go @@ -19,6 +19,7 @@ package test import ( "bytes" "flag" + "fmt" "os" "path/filepath" @@ -79,7 +80,7 @@ func compare(actual []byte, filename string) error { } expected = normalize(expected) if !bytes.Equal(expected, actual) { - return errors.Errorf("does not match golden file %s\n\nWANT:\n'%s'\n\nGOT:\n'%s'", filename, expected, actual) + return fmt.Errorf("does not match golden file %s\n\nWANT:\n'%s'\n\nGOT:\n'%s'", filename, expected, actual) } return nil }