Skip to content

Commit

Permalink
test: shorten check interval in wait_for_engine_image_condition
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Chiu <[email protected]>
  • Loading branch information
yangchiu authored and David Ko committed Dec 25, 2023
1 parent b30a91a commit 2a22af6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions manager/integration/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
RETRY_COUNTS_SHORT = 30
RETRY_COUNTS_LONG = 360
RETRY_INTERVAL = 1
RETRY_INTERVAL_SHORT = 0.5
RETRY_INTERVAL_LONG = 2
RETRY_BACKUP_COUNTS = 300
RETRY_BACKUP_INTERVAL = 1
Expand Down Expand Up @@ -2167,7 +2168,7 @@ def wait_for_engine_image_creation(client, image_name):
break
if found:
break
time.sleep(RETRY_INTERVAL)
time.sleep(RETRY_INTERVAL_SHORT)
assert found


Expand All @@ -2191,7 +2192,7 @@ def wait_for_engine_image_condition(client, image_name, state):
image = client.by_id_engine_image(image_name)
if image['conditions'][0]['status'] == state:
break
time.sleep(RETRY_INTERVAL_LONG)
time.sleep(RETRY_INTERVAL_SHORT)
assert image['conditions'][0]['status'] == state
return image

Expand Down

0 comments on commit 2a22af6

Please sign in to comment.