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




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

    tests: Add timeout to some more calls
    
    The default timeout of 60 seconds is rather long. If we run into that,
    we don't necessarily get a proper backtrace from python before meson
    kills the process. As such, lower the timeout to ease debugging.

 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]