[gnome-settings-daemon/benzea/ci-fixes] tests: Close session/system bus dbus connections
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/benzea/ci-fixes] tests: Close session/system bus dbus connections
- Date: Tue, 20 Jul 2021 11:31:36 +0000 (UTC)
commit 1c822d445f6ea1484f5f06426a7acec29be9f39f
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]