mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 00:10:20 +00:00
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:
parent
813f6c30cc
commit
c67bacdb11
@ -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] {
|
||||||
|
Loading…
Reference in New Issue
Block a user