gio: Work-around GIO bug in memory monitor tests

Start a session bus in the memory monitor tests, as something in GIO, or
python-dbusmock waits on one appearing, blocking the system bus and
stopping us from being able to receive signals.
This commit is contained in:
Bastien Nocera 2023-01-18 11:47:23 +01:00
parent e80d952335
commit 6f39eefb67
2 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@ try:
@classmethod
def setUpClass(klass):
klass.start_system_bus()
klass.start_session_bus()
klass.dbus_con = klass.get_dbus(True)
def setUp(self):

View File

@ -39,6 +39,7 @@ try:
@classmethod
def setUpClass(klass):
klass.start_system_bus()
klass.start_session_bus()
klass.dbus_con = klass.get_dbus(True)
# Start session bus so that xdg-desktop-portal can run on it
klass.start_session_bus()