Skip to content

Commit

Permalink
fix tests: wait for LRO to complete even if not sync
Browse files Browse the repository at this point in the history
  • Loading branch information
munagekar committed May 17, 2022
1 parent 0f2353e commit 8a28d7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit/aiplatform/test_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,9 @@ def test_deploy_with_autoscaling_target_accelerator_duty_cycle_and_no_accelerato
autoscaling_target_accelerator_duty_cycle=70,
)

if not sync:
test_endpoint.wait()

@pytest.mark.usefixtures("get_endpoint_mock", "get_model_mock")
@pytest.mark.parametrize("sync", [True, False])
def test_deploy_with_explanations(self, deploy_model_with_explanations_mock, sync):
Expand Down

0 comments on commit 8a28d7a

Please sign in to comment.