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
commit d4e929140e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()