Skip to content

Commit

Permalink
wait for active
Browse files Browse the repository at this point in the history
  • Loading branch information
yanksyoon committed Apr 29, 2024
1 parent e414127 commit e671bcf
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,8 @@ async def nginx_integrator_app(ops_test: OpsTest):
"""Deploy nginx-ingress-integrator charm."""
nginx_integrator_app_name = "nginx-ingress-integrator"
nginx_integrator_app = await ops_test.model.deploy(nginx_integrator_app_name, trust=True)
await ops_test.model.wait_for_idle()
assert (
ops_test.model.applications[nginx_integrator_app_name].units[0].workload_status
== ActiveStatus.name
)
yield nginx_integrator_app
await ops_test.model.wait_for_idle(apps=[nginx_integrator_app.name], wait_for_active=True)
return nginx_integrator_app


@fixture(scope="module")
Expand Down

0 comments on commit e671bcf

Please sign in to comment.