From fcfbd860c424d1d12db24792d3ad76480a251b90 Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Sun, 3 Apr 2022 15:50:50 +0200 Subject: [PATCH] pyocf: fix error volume stats reset Signed-off-by: Adam Rutkowski --- tests/functional/pyocf/types/volume.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/functional/pyocf/types/volume.py b/tests/functional/pyocf/types/volume.py index fa23de9..6848d0c 100644 --- a/tests/functional/pyocf/types/volume.py +++ b/tests/functional/pyocf/types/volume.py @@ -466,6 +466,7 @@ class ErrorDevice(Volume): def reset_stats(self): self.vol.reset_stats() super().reset_stats() + self.stats["errors"] = {IoDir.WRITE: 0, IoDir.READ: 0} def get_length(self): return self.vol.get_length()