From 765d1c5d77567053958121b997b072d007328879 Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Mon, 3 Jan 2022 19:27:07 +0100 Subject: [PATCH] rio: fix size comparison in Signed-off-by: Robert Baldyga --- tests/functional/pyocf/rio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/pyocf/rio.py b/tests/functional/pyocf/rio.py index f11cba9..6231b42 100644 --- a/tests/functional/pyocf/rio.py +++ b/tests/functional/pyocf/rio.py @@ -134,7 +134,7 @@ class Rio: if self.jobspec.time_based: self.finish_time = datetime.now() + self.jobspec.time else: - if self.jobspec.io_size != 0: + if int(self.jobspec.io_size) != 0: self.io_target = min( self.jobspec.io_size, self.jobspec.size - self.jobspec.offset )