cleanup: use %s instead of %w for t.Errorf

As t.Errorf does not support error-wrapping
directive using %s.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2022-01-21 15:06:06 +05:30 committed by mergify[bot]
parent 813f6c30cc
commit c67bacdb11

View File

@ -274,7 +274,7 @@ func TestParseKernelRelease(t *testing.T) {
for i, release := range goodReleases { for i, release := range goodReleases {
version, patchlevel, sublevel, extraversion, err := parseKernelRelease(release) version, patchlevel, sublevel, extraversion, err := parseKernelRelease(release)
if err != nil { if err != nil {
t.Errorf("parsing error for release %q: %w", release, err) t.Errorf("parsing error for release %q: %s", release, err)
} }
good := goodVersions[i] good := goodVersions[i]
if version != good[0] || patchlevel != good[1] || sublevel != good[2] || extraversion != good[3] { if version != good[0] || patchlevel != good[1] || sublevel != good[2] || extraversion != good[3] {