summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2021-07-20 13:30:54 +0200
committerBenjamin Berg <bberg@redhat.com>2021-07-22 14:23:50 +0200
commiteabff3da549c393067fc9a505f7ce10762a4e305 (patch)
tree8cc7d84f278a3f099449bc1268144669ca8a1fd4 /tests
parent148b682883bd2c484f9c60fd32d2c5589b7e14e5 (diff)
downloadgnome-settings-daemon-eabff3da549c393067fc9a505f7ce10762a4e305.tar.gz
tests: Close session/system bus dbus connections
Diffstat (limited to 'tests')
-rw-r--r--tests/gsdtestcase.py2
1 files changed, 2 insertions, 0 deletions
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(