[telepathy-gabble/master] Make sure state change signal to 'disconnected' is also sent.

Vivek Dasmohapatra vivek at collabora.co.uk
Thu Oct 15 09:07:17 PDT 2009


---
 tests/twisted/connect/network-error.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/connect/network-error.py b/tests/twisted/connect/network-error.py
index 9cc8ac5..58a8f0b 100644
--- a/tests/twisted/connect/network-error.py
+++ b/tests/twisted/connect/network-error.py
@@ -22,6 +22,9 @@ def test(q, bus, conn, stream):
     stream.transport.loseConnection()
 
     # Gabble disconnect and close its connection
+    q.expect('dbus-signal', signal='StatusChanged',
+             args=[cs.CONN_STATUS_DISCONNECTED, cs.CSR_NONE_SPECIFIED])
+
     q.expect('dbus-signal',
              signal='NameOwnerChanged',
              predicate=lambda e: cs.CONN + '.gabble.jabber' in str(e.args[0])
-- 
1.5.6.5




More information about the telepathy-commits mailing list