add missing alias of api errors under test

This commit is contained in:
danielqsj
2019-11-12 16:43:58 +08:00
parent 5bc0e26c19
commit 6596a14d39
63 changed files with 221 additions and 223 deletions

View File

@@ -21,7 +21,7 @@ import (
"time"
"google.golang.org/grpc"
"k8s.io/apimachinery/pkg/api/errors"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/apiserver/pkg/storage/storagebackend"
@@ -62,7 +62,7 @@ func WaitForPodToDisappear(podClient coreclient.PodInterface, podName string, in
if err == nil {
return false, nil
}
if errors.IsNotFound(err) {
if apierrors.IsNotFound(err) {
return true, nil
}
return false, err