[gnome-settings-daemon/benzea/ci-fixes: 9/19] tests: Close session/system bus dbus connections




commit eabff3da549c393067fc9a505f7ce10762a4e305
Author: Benjamin Berg <bberg redhat com>
Date:   Tue Jul 20 13:30:54 2021 +0200

    tests: Close session/system bus dbus connections

 tests/gsdtestcase.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/tests/gsdtestcase.py b/tests/gsdtestcase.py
index d4b0c1bf..bdbe0874 100644
--- a/tests/gsdtestcase.py
+++ b/tests/gsdtestcase.py
@@ -90,6 +90,8 @@ class GSDTestCase(X11SessionTestCase):
 
         klass.system_bus_con = klass.get_dbus(True)
         klass.session_bus_con = klass.get_dbus(False)
+        klass.addClassCleanup(klass.system_bus_con.close)
+        klass.addClassCleanup(klass.session_bus_con.close)
 
         # we never want to cause notifications on the actual GUI
         klass.p_notify = klass.spawn_server_template(


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