Removed usage of github.com/pkg/errors

Signed-off-by: Sahil Raja <sahilraja242@gmail.com>
This commit is contained in:
Sahil Raja 2021-06-23 08:07:05 +05:30
parent 8eee78a61f
commit 992993257d
No known key found for this signature in database
GPG Key ID: C3F032CD2EFE69DE

View File

@ -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) {