Skip to content

Commit

Permalink
int test
Browse files Browse the repository at this point in the history
  • Loading branch information
kayra1 committed Aug 1, 2024
1 parent 111b509 commit 8bf3dee
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ async def test_build_and_deploy(ops_test: OpsTest):
charm = await ops_test.build_charm(".")
resources = {"gocert-image": CHARMCRAFT["resources"]["gocert-image"]["upstream-source"]}

# Deploy the charm and wait for active/idle status
# Deploy the charm and wait for blocked status
await asyncio.gather(
ops_test.model.deploy(charm, resources=resources, application_name=APP_NAME),
ops_test.model.wait_for_idle(
apps=[APP_NAME], status="active", raise_on_blocked=True, timeout=1000
),
ops_test.model.wait_for_idle(apps=[APP_NAME], status="blocked", timeout=1000),
)

0 comments on commit 8bf3dee

Please sign in to comment.