[gnome-settings-daemon] power: Assert non-idle at start of test_idle_time_reset_on_resume



commit 2e205e3e3e3af55fd40cf855dfb04a2ee79b3c38
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jan 23 16:26:26 2013 +0100

    power: Assert non-idle at start of test_idle_time_reset_on_resume

 plugins/power/test.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/power/test.py b/plugins/power/test.py
index 5ca4daf..d49d090 100755
--- a/plugins/power/test.py
+++ b/plugins/power/test.py
@@ -284,6 +284,7 @@ class PowerPluginTest(gsdtestcase.GSDTestCase):
 
         # Go idle
         self.settings_session['idle-delay'] = 5
+        self.assertEqual(self.get_status(), gsdpowerenums.GSM_PRESENCE_STATUS_AVAILABLE)
         time.sleep(7)
         self.assertEqual(self.get_status(), gsdpowerenums.GSM_PRESENCE_STATUS_IDLE)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]