[at-spi2-core: 6/11] conftest.py: Reset the mock session to its startup state until after the client is dead




commit 7f40b3d5bddc68ddaeaecc6d4e07f4b1c9dba2b9
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Jul 13 19:19:03 2022 -0500

    conftest.py: Reset the mock session to its startup state until after the client is dead

 tests/registryd/conftest.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/registryd/conftest.py b/tests/registryd/conftest.py
index dc39ff44..7f0c6982 100644
--- a/tests/registryd/conftest.py
+++ b/tests/registryd/conftest.py
@@ -60,9 +60,6 @@ def session_manager():
     # Tell all session clients to terminate
     mock_session.Logout(0, dbus_interface='org.gnome.SessionManager')
 
-    # Reset mock session back to its starting state
-    mock_session.Reset(dbus_interface='org.freedesktop.DBus.Mock')
-
     # Wait a bit for the a11y bus launcher to really die
     proxy = bus.get_object('org.freedesktop.DBus', '/org/freedesktop/DBus')
     while True:
@@ -72,6 +69,9 @@ def session_manager():
         else:
             break
 
+    # Reset mock session back to its starting state
+    mock_session.Reset(dbus_interface='org.freedesktop.DBus.Mock')
+
 @pytest.fixture
 def registry_root(main_loop, session_manager):
     a11y_address = get_accesssibility_bus_address()


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