Skip to content

Commit 1a13d18

Browse files
committed
Better waiting for the app.destroy test
1 parent 83ab226 commit 1a13d18

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/integration/test_application.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,10 @@ async def test_app_destroy(event_loop):
249249
await model.wait_for_idle(status="active")
250250
assert a_name in model.applications
251251
await app.destroy(destroy_storage=True, force=True, no_wait=True)
252-
await jasyncio.sleep(10)
252+
await model.block_until(
253+
lambda: a_name not in model.applications,
254+
timeout=60,
255+
)
253256
assert a_name not in model.applications
254257

255258

0 commit comments

Comments
 (0)