Skip to content

Commit

Permalink
Pass stop time to FilesystemSymlinkMonitor run_check
Browse files Browse the repository at this point in the history
Since it relies on the D-Bus, it too must wait until the D-Bus has
quiesced.

Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Feb 26, 2024
1 parent 84cc406 commit 8325808
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stratisd_cert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion testlib/infra.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8325808

Please sign in to comment.