mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2026-05-05 08:48:03 +02:00
tests: Work-around profiles reload taking too long
This commit is contained in:
parent
862c7db8a8
commit
556b8b3f98
1 changed files with 2 additions and 0 deletions
|
|
@ -509,6 +509,8 @@ class Tests(dbusmock.DBusTestCase):
|
|||
with open(os.path.join(acpi_dir, "platform_profile_choices") ,'w') as choices:
|
||||
choices.write("low-power\nbalanced\nperformance\n")
|
||||
|
||||
# Wait for profiles to get reloaded
|
||||
self.assertEventually(lambda: len(self.get_dbus_property('Profiles')) == 3)
|
||||
profiles = self.get_dbus_property('Profiles')
|
||||
self.assertEqual(len(profiles), 3)
|
||||
self.assertEqual(self.get_dbus_property('ActiveProfile'), 'balanced')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue