mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2026-05-08 12:28:05 +02:00
integration-tests: Wait for holds to disappear with a lambda
This commit is contained in:
parent
9ab472e665
commit
ce414c784c
1 changed files with 4 additions and 2 deletions
|
|
@ -2120,8 +2120,10 @@ class Tests(dbusmock.DBusTestCase):
|
|||
retcode = launch_process.wait()
|
||||
self.assertEqual(retcode, -signal.SIGTERM)
|
||||
|
||||
holds = self.get_dbus_property("ActiveProfileHolds")
|
||||
self.assertEqual(len(holds), 0)
|
||||
self.assert_eventually(
|
||||
lambda: len(self.get_dbus_property("ActiveProfileHolds")) == 0,
|
||||
message=lambda: f"Holds are {self.get_dbus_property('ActiveProfileHolds')}",
|
||||
)
|
||||
|
||||
def test_launch_sigint_wrapper(self):
|
||||
self.create_platform_profile()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue