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:
fossdd 2025-01-10 17:42:14 +01:00 committed by Kate Hsuan
parent 83eecbab65
commit 3731b03553

View file

@ -4082,6 +4082,9 @@ class Tests(dbusmock.DBusTestCase):
bat0_up = devs[0]
# 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)
# Check we have the kernel percentage
self.assertEqual(self.get_dbus_dev_property(bat0_up, "Percentage"), 30)