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
@@ -167,7 +167,7 @@ func TestWait(t *testing.T) {
defer close(done)
got, err := q.Wait(ctx)
if err != nil {
t.Errorf("Wait: unexpected error: %w", err)
t.Errorf("Wait: unexpected error: %v", err)
} else if got != input {
t.Errorf("Wait: got %q, want %q", got, input)
}