diff --git a/test/functional/api/cas/casadm.py b/test/functional/api/cas/casadm.py index 0988301..799147a 100644 --- a/test/functional/api/cas/casadm.py +++ b/test/functional/api/cas/casadm.py @@ -508,7 +508,8 @@ def stop_all_caches() -> None: caches = get_caches() if not caches: 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)