Skip to content

Commit

Permalink
Review client-integration
Browse files Browse the repository at this point in the history
Break the wait_until in test_scaling_secrets to an idle_period < update-status-interval + time.sleep to ensure we see the result of at least one update-status.
  • Loading branch information
phvalguima authored Jan 17, 2024
1 parent 15d0045 commit 767e9c7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,10 @@ async def _is_number_of_endpoints_valid(client_app: str, rel: str) -> bool:
apps_statuses=["active"],
units_statuses=["active"],
wait_for_exact_units={OPENSEARCH_APP_NAME: len(opensearch_unit_ids)},
idle_period=70,
idle_period=50, # slightly less than update-status-interval period
)
# Now, we want to sleep until an update-status happens
time.sleep(30)
assert await _is_number_of_endpoints_valid(
CLIENT_APP_NAME, FIRST_RELATION_NAME
), await rel_endpoints(CLIENT_APP_NAME, FIRST_RELATION_NAME)
Expand Down

0 comments on commit 767e9c7

Please sign in to comment.