neil / rpms / udisks2

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