diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-08-27 16:54:26 +0200 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-08-27 16:54:26 +0200 |
commit | 35c8e4cc25c0012c3d896cc52225874e9049780b (patch) | |
tree | 2475007b5d1313f62fef6dde7d4946b59231791e /test/test-client.py | |
parent | bf3536178c37ee6bf9816a98c92b0de386f551a4 (diff) | |
parent | 6ded3e619d7308b6eda2bf0928b226378b565d1b (diff) | |
download | ayatana-indicator-messages-35c8e4cc25c0012c3d896cc52225874e9049780b.tar.gz ayatana-indicator-messages-35c8e4cc25c0012c3d896cc52225874e9049780b.tar.bz2 ayatana-indicator-messages-35c8e4cc25c0012c3d896cc52225874e9049780b.zip |
Merge trunk
Diffstat (limited to 'test/test-client.py')
-rwxr-xr-x | test/test-client.py | 5 |
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') |