Skip to content

Commit 27cae57

Browse files
committed
chore: use relations assertion
1 parent 6f47350 commit 27cae57

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/integration/test_application.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ async def test_app_relation_destroy_block_until_done():
340340
async with base.CleanModel() as model:
341341
app: Application = await model.deploy('docker-registry')
342342
rsa: Application = await model.deploy("easyrsa")
343-
await app.relate("cert-provider", rsa.name)
343+
relation = await app.relate('cert-provider', rsa.name)
344344
await model.wait_for_idle(status="active")
345-
await app.destroy_relation("cert-provider", rsa.name, block_until_done=True)
346-
await app.relate("cert-provider", rsa.name)
345+
await app.destroy_relation('cert-provider', rsa.name, block_until_done=True)
346+
assert relation not in app.relations

0 commit comments

Comments
 (0)