Removed usage of github.com/pkg/errors
Signed-off-by: Sahil Raja <sahilraja242@gmail.com>
This commit is contained in:
parent
8eee78a61f
commit
992993257d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user