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