test_eviction: Use new_io() method with proper arguments
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
75569ecaba
commit
6a0fb109e8
@ -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):
|
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.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)])
|
completion = OcfCompletion([("err", c_int)])
|
||||||
io.callback = completion.callback
|
io.callback = completion.callback
|
||||||
|
Loading…
Reference in New Issue
Block a user