From d607402f2ba7b2db80abe7b8d8f4392636f32ba6 Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Wed, 17 Apr 2019 18:12:56 -0400 Subject: [PATCH] pyocf: wait for pending I/O before cache stop Signed-off-by: Adam Rutkowski --- tests/functional/pyocf/types/cache.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/functional/pyocf/types/cache.py b/tests/functional/pyocf/types/cache.py index 842deb0..052a7d4 100644 --- a/tests/functional/pyocf/types/cache.py +++ b/tests/functional/pyocf/types/cache.py @@ -409,6 +409,7 @@ class Cache: [("cache", c_void_p), ("priv", c_void_p), ("error", c_int)] ) + self.owner.lib.ocf_cache_wait_for_io_finish(self.cache_handle) self.owner.lib.ocf_mngt_cache_stop(self.cache_handle, c, None) c.wait()