From 6f216692b47b38f480e50d213de5c513a309d9e0 Mon Sep 17 00:00:00 2001 From: Tony Asleson Date: Tue, 28 Jun 2016 13:36:32 -0500 Subject: [PATCH] lvmdbustest: Comment out refresh check for LV create When we test Vg.LvCreateRaid some of the hidden LVs volume type go from 'I' to 'i' between the time it takes us to create the LV and the time it takes to call into refresh to verify the service is up to date. This is a fairly rare occurance. --- test/dbus/lvmdbustest.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/dbus/lvmdbustest.py b/test/dbus/lvmdbustest.py index 4443b0c1c..457db965f 100755 --- a/test/dbus/lvmdbustest.py +++ b/test/dbus/lvmdbustest.py @@ -373,7 +373,11 @@ class TestDbusService(unittest.TestCase): lv = ClientProxy(self.bus, path) # TODO verify object properties - self.assertEqual(self._refresh(), 0) + # We are quick enough now that we can get VolumeType changes from + # 'I' to 'i' between the time it takes to create a RAID and it returns + # and when we refresh state here. Not sure how we can handle this as + # we cannot just sit and poll all the time for changes... + # self.assertEqual(self._refresh(), 0) return lv def test_lv_create(self):