From 6a0fb109e813874bd7a845c7962a1b7986f9f700 Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Fri, 27 Sep 2019 12:06:36 +0200 Subject: [PATCH] test_eviction: Use new_io() method with proper arguments Signed-off-by: Robert Baldyga --- tests/functional/tests/eviction/test_eviction.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/functional/tests/eviction/test_eviction.py b/tests/functional/tests/eviction/test_eviction.py index a3e021c..d17bbdb 100644 --- a/tests/functional/tests/eviction/test_eviction.py +++ b/tests/functional/tests/eviction/test_eviction.py @@ -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