[Telepathy-commits] [telepathy-idle/master] Add a little explanation to the connect-fail-ssl test

Jonathon Jongsma jonathon.jongsma at collabora.co.uk
Fri Feb 13 17:43:16 PST 2009


---
 tests/twisted/connect/connect-fail-ssl.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/twisted/connect/connect-fail-ssl.py b/tests/twisted/connect/connect-fail-ssl.py
index 4e0816c..dd9658f 100644
--- a/tests/twisted/connect/connect-fail-ssl.py
+++ b/tests/twisted/connect/connect-fail-ssl.py
@@ -8,9 +8,10 @@ from idletest import exec_test, SSLIRCServer
 
 def test(q, bus, conn, stream):
     conn.Connect()
-    q.expect('dbus-signal', signal='StatusChanged', args=[1,1])
-    q.expect('dbus-signal', signal='StatusChanged', args=[2,2])
+    q.expect('dbus-signal', signal='StatusChanged', args=[1,1]) # connecting, requested
+    q.expect('dbus-signal', signal='StatusChanged', args=[2,2]) # disconnected, network-error
 
 if __name__ == '__main__':
-    exec_test(test, {'port': dbus.UInt32(5600), 'use-ssl': dbus.Boolean(True)}, timeout=10)
+    # there is no ssl server listening at port 5600, so this should fail
+    exec_test(test, {'port': dbus.UInt32(5600), 'use-ssl': dbus.Boolean(True)})
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list