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