Fix govet errors for %w use in test errors. (#8083)

The %w syntax is a fmt.Errorf thing, not supported by the testing package.
This commit is contained in:
M. J. Fromberger
2022-03-07 18:17:37 +00:00
committed by GitHub
parent 1f03287f52
commit 2df5c85a8d
5 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ func TestScanner(t *testing.T) {
got = append(got, s.Token())
}
if err := s.Err(); err != io.EOF {
t.Errorf("Next: unexpected error: %w", err)
t.Errorf("Next: unexpected error: %v", err)
}
if !reflect.DeepEqual(got, test.want) {