From c67bacdb116fef0d06e2811a0c17969044d38111 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Fri, 21 Jan 2022 15:06:06 +0530 Subject: [PATCH] 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 --- internal/util/util_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/util/util_test.go b/internal/util/util_test.go index fdea10b7b..d4cb39680 100644 --- a/internal/util/util_test.go +++ b/internal/util/util_test.go @@ -274,7 +274,7 @@ func TestParseKernelRelease(t *testing.T) { for i, release := range goodReleases { version, patchlevel, sublevel, extraversion, err := parseKernelRelease(release) 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] if version != good[0] || patchlevel != good[1] || sublevel != good[2] || extraversion != good[3] {