Skip to content

Commit 105b60a

Browse files
committed
Add apierror package from k8s.io to fix tests
1 parent f798086 commit 105b60a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/odh-notebook-controller/controllers/notebook_controller_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333
corev1 "k8s.io/api/core/v1"
3434
netv1 "k8s.io/api/networking/v1"
3535
rbacv1 "k8s.io/api/rbac/v1"
36-
"k8s.io/apimachinery/pkg/api/errors"
36+
apierr "k8s.io/apimachinery/pkg/api/errors"
3737
"k8s.io/apimachinery/pkg/api/resource"
3838
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3939
"k8s.io/apimachinery/pkg/types"
@@ -1119,7 +1119,7 @@ var _ = Describe("The Openshift Notebook controller", func() {
11191119
// Check and log the final state
11201120
client := &oauthv1.OAuthClient{}
11211121
err := cli.Get(ctx, oauthClientKey, client)
1122-
if errors.IsNotFound(err) {
1122+
if apierr.IsNotFound(err) {
11231123
GinkgoT().Logf("OAuthClient was successfully deleted by the controller")
11241124
} else if err != nil {
11251125
GinkgoT().Logf("Error checking OAuthClient: %v", err)

0 commit comments

Comments
 (0)