test_eviction: Use new_io() method with proper arguments

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga 2019-09-27 12:06:36 +02:00
parent 75569ecaba
commit 6a0fb109e8

View File

@ -65,10 +65,12 @@ def test_write_size_greater_than_cache(pyocf_ctx, mode: CacheMode, cls: CacheLin
def send_io(exported_obj: Core, data: Data):
io = exported_obj.new_io()
io = exported_obj.new_io(
exported_obj.cache.get_default_queue(),
0, data.size, IoDir.WRITE, 0, 0
)
io.set_data(data)
io.configure(0, data.size, IoDir.WRITE, 0, 0)
io.set_queue(exported_obj.cache.get_default_queue())
completion = OcfCompletion([("err", c_int)])
io.callback = completion.callback