Merge pull request #127 from arutk/pytest_wait_io

pyocf: wait for pending I/O before cache stop
This commit is contained in:
Michał Mielewczyk
2019-04-18 09:21:50 +02:00
committed by GitHub

View File

@@ -449,6 +449,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()