mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2025-12-28 00:10:05 +01:00
Fix test race in test_bluetooth_hidpp_mouse
We ship the proposed patch already since Oct 2024 in Alpine Linux and is working for us correctly and fixes the test. Closes https://gitlab.freedesktop.org/upower/upower/-/issues/228 Co-Authored-By: Bastien Nocera <hadess@hadess.net>
This commit is contained in:
parent
83eecbab65
commit
3731b03553
1 changed files with 3 additions and 0 deletions
|
|
@ -4082,6 +4082,9 @@ class Tests(dbusmock.DBusTestCase):
|
||||||
bat0_up = devs[0]
|
bat0_up = devs[0]
|
||||||
|
|
||||||
# Check we have the Bluetooth name
|
# Check we have the Bluetooth name
|
||||||
|
self.assertEventually(
|
||||||
|
lambda: self.get_dbus_dev_property(bat0_up, "Model"), value=alias
|
||||||
|
)
|
||||||
self.assertEqual(self.get_dbus_dev_property(bat0_up, "Model"), alias)
|
self.assertEqual(self.get_dbus_dev_property(bat0_up, "Model"), alias)
|
||||||
# Check we have the kernel percentage
|
# Check we have the kernel percentage
|
||||||
self.assertEqual(self.get_dbus_dev_property(bat0_up, "Percentage"), 30)
|
self.assertEqual(self.get_dbus_dev_property(bat0_up, "Percentage"), 30)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue