598898
From 0edd6f5579c964323d86897aff9476c20d7901ba Mon Sep 17 00:00:00 2001
598898
From: Vojtech Trefny <vtrefny@redhat.com>
598898
Date: Mon, 22 Nov 2021 14:23:08 +0100
598898
Subject: [PATCH] tests: Do not check that writeAmplificationRatio is bigger
598898
 than 0
598898
598898
Apparently the bios_in_write value is now 0 for newly created VDO
598898
pools and because we use it for the writeAmplificationRatio
598898
calculation we get zero too.
598898
---
598898
 src/tests/dbus-tests/test_20_LVM.py | 1 -
598898
 1 file changed, 1 deletion(-)
598898
598898
diff --git a/src/tests/dbus-tests/test_20_LVM.py b/src/tests/dbus-tests/test_20_LVM.py
598898
index 7fbff0434..fde7c3f3f 100644
598898
--- a/src/tests/dbus-tests/test_20_LVM.py
598898
+++ b/src/tests/dbus-tests/test_20_LVM.py
598898
@@ -508,7 +508,6 @@ def test_create(self):
598898
         # get statistics and do some simple sanity check
598898
         stats = lv.GetStatistics(self.no_options, dbus_interface=self.iface_prefix + '.VDOVolume')
598898
         self.assertIn("writeAmplificationRatio", stats.keys())
598898
-        self.assertGreater(float(stats["writeAmplificationRatio"]), 0)
598898
 
598898
     def test_enable_disable_compression_deduplication(self):
598898
         vgname = 'udisks_test_vdo_vg'