[gnome-settings-daemon/benzea/systemd-lower-timeout: 1/2] power: Update legacy brightness test for rounding changes
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/benzea/systemd-lower-timeout: 1/2] power: Update legacy brightness test for rounding changes
- Date: Tue, 10 Dec 2019 14:25:25 +0000 (UTC)
commit 83a46991c8dbef58f0182dd1d003e23747a9d342
Author: Benjamin Berg <bberg redhat com>
Date: Tue Dec 10 15:24:28 2019 +0100
power: Update legacy brightness test for rounding changes
We changed the rounding code recently. Update the tests to make them
pass again. This was not noticed because the tests were not running due
to a simple test setup bug.
plugins/power/test.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/power/test.py b/plugins/power/test.py
index 5e922f17..41031ef4 100755
--- a/plugins/power/test.py
+++ b/plugins/power/test.py
@@ -1194,7 +1194,7 @@ class PowerPluginTest8(PowerPluginBase):
self.assertEqual(self.get_brightness(), 0)
obj_gsd_power_prop_iface.Set('org.gnome.SettingsDaemon.Power.Screen', 'Brightness', 10)
time.sleep(0.4)
- self.assertEqual(self.get_brightness(), 1)
+ self.assertEqual(self.get_brightness(), 2)
obj_gsd_power_prop_iface.Set('org.gnome.SettingsDaemon.Power.Screen', 'Brightness', 20)
time.sleep(0.4)
self.assertEqual(self.get_brightness(), 3)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]