From 992993257d8a0c92820cc45168c6024d748952c6 Mon Sep 17 00:00:00 2001 From: Sahil Raja Date: Wed, 23 Jun 2021 08:07:05 +0530 Subject: [PATCH] Removed usage of github.com/pkg/errors Signed-off-by: Sahil Raja --- pkg/kubelet/kubeletconfig/configfiles/configfiles_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/kubelet/kubeletconfig/configfiles/configfiles_test.go b/pkg/kubelet/kubeletconfig/configfiles/configfiles_test.go index a8fe529249a..ea5c80a95b5 100644 --- a/pkg/kubelet/kubeletconfig/configfiles/configfiles_test.go +++ b/pkg/kubelet/kubeletconfig/configfiles/configfiles_test.go @@ -17,12 +17,11 @@ limitations under the License. package configfiles import ( + "errors" "fmt" "path/filepath" "testing" - "github.com/pkg/errors" - apiequality "k8s.io/apimachinery/pkg/api/equality" "k8s.io/apimachinery/pkg/runtime" kubeletconfigv1beta1 "k8s.io/kubelet/config/v1beta1" @@ -165,7 +164,7 @@ foo: bar`), } kc, err := loader.Load() - if c.strictErr && !runtime.IsStrictDecodingError(errors.Cause(err)) { + if c.strictErr && !runtime.IsStrictDecodingError(errors.Unwrap(err)) { t.Fatalf("got error: %v, want strict decoding error", err) } if utiltest.SkipRest(t, c.desc, err, c.err) {