[gnome-settings-daemon/benzea/ci-fixes: 4/7] tests: Add timeout to some more calls




commit ecd52b884032712bc89036534238871303cd6827
Author: Benjamin Berg <bberg redhat com>
Date:   Mon Jul 19 16:57:57 2021 +0200

    tests: Add timeout to some more calls

 plugins/power/test.py     | 3 ++-
 plugins/xsettings/test.py | 3 ++-
 tests/gsdtestcase.py      | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/plugins/power/test.py b/plugins/power/test.py
index bb5861a4..4bb49c11 100755
--- a/plugins/power/test.py
+++ b/plugins/power/test.py
@@ -86,7 +86,8 @@ class PowerPluginBase(gsdtestcase.GSDTestCase):
 
         # wait until the daemon is on the bus
         self.wait_for_bus_object('org.gnome.SessionManager',
-                                 '/org/gnome/SessionManager')
+                                 '/org/gnome/SessionManager',
+                                 timeout=100)
 
         self.obj_session_mgr = self.session_bus_con.get_object(
             'org.gnome.SessionManager', '/org/gnome/SessionManager')
diff --git a/plugins/xsettings/test.py b/plugins/xsettings/test.py
index 3e181ce1..e6342094 100755
--- a/plugins/xsettings/test.py
+++ b/plugins/xsettings/test.py
@@ -43,7 +43,8 @@ class XsettingsPluginTest(gsdtestcase.GSDTestCase):
         # wait until the daemon is on the bus
         try:
             self.wait_for_bus_object('org.gnome.SessionManager',
-                                     '/org/gnome/SessionManager')
+                                     '/org/gnome/SessionManager',
+                                     timeout=100)
         except:
             # on failure, print log
             with open(self.session_log_write.name) as f:
diff --git a/tests/gsdtestcase.py b/tests/gsdtestcase.py
index 3bf939fb..cf716b39 100644
--- a/tests/gsdtestcase.py
+++ b/tests/gsdtestcase.py
@@ -195,7 +195,8 @@ class GSDTestCase(X11SessionTestCase):
         # See https://gitlab.gnome.org/GNOME/mutter/merge_requests/15
         klass.mutter = subprocess.Popen(['mutter', '--x11'])
         klass.wait_for_bus_object('org.gnome.Mutter.IdleMonitor',
-                                 '/org/gnome/Mutter/IdleMonitor/Core')
+                                 '/org/gnome/Mutter/IdleMonitor/Core',
+                                 timeout=100)
 
     def stop_mutter(klass):
         '''stop mutter'''


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