Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaelvll committed Apr 3, 2024
1 parent b0d9e23 commit 7957567
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -3602,7 +3602,12 @@ def test_skyserve_failures(generic_cloud: str):
# Make sure no new replicas are started for early failure.
f'echo "$s" | grep -A 100 "Service Replicas" | grep "{name}" | wc -l | grep 2;',
f'sky serve update {name} --cloud {generic_cloud} -y tests/skyserve/failures/probing.yaml',
_SERVE_WAIT_UNTIL_READY.format(name=name, replica_num=1),
f's=$(sky serve status {name}); '
# Wait for replica to be ready.
f'until echo "$s" | grep "READY"; do '
'echo "Waiting for replica to be failed..."; sleep 5; '
f's=$(sky serve status {name}); echo "$s"; done;',
# Wait for replica to change to FAILED_PROBING
f's=$(sky serve status {name}); '
f'until echo "$s" | grep "FAILED_PROBING"; do '
'echo "Waiting for replica to be failed..."; sleep 5; '
Expand Down

0 comments on commit 7957567

Please sign in to comment.