Skip to content
This repository was archived by the owner on Mar 13, 2022. It is now read-only.

Commit 39b7849

Browse files
committed
dynamic-e2e: fix error expectation in retry logic
1 parent a5e529d commit 39b7849

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dynamic/test_client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from kubernetes.client import api_client
2121

2222
from . import DynamicClient
23-
from .exceptions import ResourceNotFoundError
23+
from .exceptions import ResourceNotFoundError, NotFoundError
2424

2525

2626
def short_uuid():
@@ -80,7 +80,7 @@ def test_cluster_custom_resources(self):
8080
try:
8181
changeme_api = client.resources.get(
8282
api_version='apps.example.com/v1', kind='ClusterChangeMe')
83-
except ResourceNotFoundError:
83+
except NotFoundError:
8484
# Need to wait a sec for the discovery layer to get updated
8585
time.sleep(2)
8686
changeme_api = client.resources.get(

0 commit comments

Comments
 (0)