aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-08-27 16:54:26 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-08-27 16:54:26 +0200
commit35c8e4cc25c0012c3d896cc52225874e9049780b (patch)
tree2475007b5d1313f62fef6dde7d4946b59231791e /test
parentbf3536178c37ee6bf9816a98c92b0de386f551a4 (diff)
parent6ded3e619d7308b6eda2bf0928b226378b565d1b (diff)
downloadayatana-indicator-messages-35c8e4cc25c0012c3d896cc52225874e9049780b.tar.gz
ayatana-indicator-messages-35c8e4cc25c0012c3d896cc52225874e9049780b.tar.bz2
ayatana-indicator-messages-35c8e4cc25c0012c3d896cc52225874e9049780b.zip
Merge trunk
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-client.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test-client.py b/test/test-client.py
index a1d503f..0dbf868 100755
--- a/test/test-client.py
+++ b/test/test-client.py
@@ -63,6 +63,11 @@ class MessagingMenuTest(dbusmock.DBusTestCase):
self.assertMethodCalled('UnregisterApplication', 'test.desktop')
# ApplicationStoppedRunning is called when the last ref on mmapp is dropped
+ # Since mmapp is the only thing holding on to a GDBusConnection, the
+ # connection might get freed before it sends the StoppedRunning
+ # message. Flush the connection to make sure it is sent.
+ bus = Gio.bus_get_sync(Gio.BusType.SESSION, None)
+ bus.flush_sync(None)
del mmapp
self.assertMethodCalled('ApplicationStoppedRunning', 'test.desktop')