From 8325808d895de700a3dc366911781fec542a7556 Mon Sep 17 00:00:00 2001 From: mulhern Date: Mon, 26 Feb 2024 10:47:18 -0500 Subject: [PATCH] Pass stop time to FilesystemSymlinkMonitor run_check Since it relies on the D-Bus, it too must wait until the D-Bus has quiesced. Signed-off-by: mulhern --- stratisd_cert.py | 2 +- testlib/infra.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/stratisd_cert.py b/stratisd_cert.py index 426021e..5b7e31a 100644 --- a/stratisd_cert.py +++ b/stratisd_cert.py @@ -230,7 +230,7 @@ def tearDown(self): DbusMonitor.run_check(self, stop_time) - FilesystemSymlinkMonitor.run_check(self) + FilesystemSymlinkMonitor.run_check(self, stop_time) def _unittest_set_property( self, object_path, param_iface, dbus_param, dbus_value, exception_name diff --git a/testlib/infra.py b/testlib/infra.py index 18c6674..24b5d08 100644 --- a/testlib/infra.py +++ b/testlib/infra.py @@ -252,11 +252,15 @@ class FilesystemSymlinkMonitor(unittest.TestCase): _DECODE_DM = "stratis-decode-dm" - def run_check(self): + def run_check(self, stop_time): """ Check that the filesystem links on the D-Bus and the filesystem links expected from looking at filesystem devicemapper paths match exactly. + + :param int stop_time: the time the test completed """ + time.sleep(sleep_time(stop_time, 16)) + managed_objects = StratisDbus.get_managed_objects() filesystems = frozenset(