Skip to content

Commit 95c396d

Browse files
authored
change: Increase number of retries when describing an endpoint since tf-2.0 has larger images and takes longer to start. (#1196)
1 parent 0382024 commit 95c396d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/integ/test_data_capture_config.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ def test_enabling_data_capture_on_endpoint_shows_correct_data_capture_status(
7474
predictor.enable_data_capture()
7575

7676
# Wait for endpoint to finish updating
77-
# Endpoint update takes ~7min. 40 retries * 30s sleeps = 20min timeout
77+
# Endpoint update takes ~7min. 50 retries * 30s sleeps = 25min timeout
7878
for _ in retries(
79-
max_retry_count=40,
79+
max_retry_count=50,
8080
exception_message_prefix="Waiting for 'InService' endpoint status",
8181
seconds_to_sleep=30,
8282
):
@@ -159,9 +159,9 @@ def test_disabling_data_capture_on_endpoint_shows_correct_data_capture_status(
159159
predictor.disable_data_capture()
160160

161161
# Wait for endpoint to finish updating
162-
# Endpoint update takes ~7min. 40 retries * 30s sleeps = 20min timeout
162+
# Endpoint update takes ~7min. 50 retries * 30s sleeps = 25min timeout
163163
for _ in retries(
164-
max_retry_count=40,
164+
max_retry_count=50,
165165
exception_message_prefix="Waiting for 'InService' endpoint status",
166166
seconds_to_sleep=30,
167167
):
@@ -228,9 +228,9 @@ def test_updating_data_capture_on_endpoint_shows_correct_data_capture_status(
228228
)
229229

230230
# Wait for endpoint to finish updating
231-
# Endpoint update takes ~7min. 40 retries * 30s sleeps = 20min timeout
231+
# Endpoint update takes ~7min. 50 retries * 30s sleeps = 25min timeout
232232
for _ in retries(
233-
max_retry_count=40,
233+
max_retry_count=50,
234234
exception_message_prefix="Waiting for 'InService' endpoint status",
235235
seconds_to_sleep=30,
236236
):

0 commit comments

Comments
 (0)