Skip to content

Commit 52c4153

Browse files
committed
Insist on detaching the storage on test_detach_storage
1 parent 98dc651 commit 52c4153

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/integration/test_model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,16 +1079,16 @@ async def test_detach_storage(event_loop):
10791079
storage_details_1 = _storage_details_1[0]
10801080
assert 'unit-postgresql-0' in storage_details_1['attachments']
10811081

1082-
await unit.detach_storage(storage_id)
1083-
await jasyncio.sleep(10)
1082+
await unit.detach_storage(storage_id, force=True)
1083+
await jasyncio.sleep(20)
10841084

10851085
_storage_details_2 = await model.show_storage_details(storage_id)
10861086
storage_details_2 = _storage_details_2[0]
10871087
assert ('unit-postgresql-0' not in storage_details_2['attachments']) or \
10881088
storage_details_2['attachments']['unit-postgresql-0'].life == 'dying'
10891089

10901090
# remove_storage
1091-
await model.remove_storage(storage_id)
1091+
await model.remove_storage(storage_id, force=True)
10921092
await jasyncio.sleep(10)
10931093
storages = await model.list_storage()
10941094
assert all([storage_id not in s['storage-tag'] for s in storages])

0 commit comments

Comments
 (0)