Update pyOCF and tests

Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
Jan Musial 2021-05-26 07:50:53 +02:00
parent 2b498673f0
commit 9f1df6e380
2 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@ class Cache:
def start_cache(self, default_io_queue: Queue = None, mngt_queue: Queue = None): def start_cache(self, default_io_queue: Queue = None, mngt_queue: Queue = None):
status = self.owner.lib.ocf_mngt_cache_start( status = self.owner.lib.ocf_mngt_cache_start(
self.owner.ctx_handle, byref(self.cache_handle), byref(self.cfg) self.owner.ctx_handle, byref(self.cache_handle), byref(self.cfg), None
) )
if status: if status:
raise OcfError("Creating cache instance failed", status) raise OcfError("Creating cache instance failed", status)

View File

@ -394,7 +394,7 @@ def test_start_stop_noqueue(pyocf_ctx):
cache_handle = c_void_p() cache_handle = c_void_p()
status = pyocf_ctx.lib.ocf_mngt_cache_start( status = pyocf_ctx.lib.ocf_mngt_cache_start(
pyocf_ctx.ctx_handle, byref(cache_handle), byref(_cache.cfg) pyocf_ctx.ctx_handle, byref(cache_handle), byref(_cache.cfg), None
) )
assert not status, "Failed to start cache: {}".format(status) assert not status, "Failed to start cache: {}".format(status)