Merge new_io and configure - update tests
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
@@ -32,10 +32,9 @@ def test_simple_wt_write(pyocf_ctx):
|
||||
core_device.reset_stats()
|
||||
|
||||
write_data = Data.from_string("This is test data")
|
||||
io = core.new_io()
|
||||
io = core.new_io(cache.get_default_queue(), 20, write_data.size,
|
||||
IoDir.WRITE, 0, 0)
|
||||
io.set_data(write_data)
|
||||
io.configure(20, write_data.size, IoDir.WRITE, 0, 0)
|
||||
io.set_queue(cache.get_default_queue())
|
||||
|
||||
cmpl = OcfCompletion([("err", c_int)])
|
||||
io.callback = cmpl.callback
|
||||
|
Reference in New Issue
Block a user