test-api: reverse cache stop

Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
This commit is contained in:
Kamil Gierszewski 2024-09-26 15:18:47 +02:00
parent 16227e90ed
commit 5f170b11b3
No known key found for this signature in database

View File

@ -508,7 +508,8 @@ def stop_all_caches() -> None:
caches = get_caches() caches = get_caches()
if not caches: if not caches:
return return
for cache in caches: # Running "cache stop" on the reversed list to resolve the multilevel cache stop problem
for cache in reversed(caches):
stop_cache(cache_id=cache.cache_id, no_data_flush=True) stop_cache(cache_id=cache.cache_id, no_data_flush=True)