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

[tor-commits] [ooni-probe/develop] Add call to new deferMakeConnection() to test_tls_handshake().



commit 5e1f148a6171efddc96afdd6930978387a052cb5
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Thu Feb 28 18:37:18 2013 +0000

    Add call to new deferMakeConnection() to test_tls_handshake().
---
 nettests/experimental/tls_handshake.py |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/nettests/experimental/tls_handshake.py b/nettests/experimental/tls_handshake.py
index ddef435..1b66b45 100644
--- a/nettests/experimental/tls_handshake.py
+++ b/nettests/experimental/tls_handshake.py
@@ -714,6 +714,9 @@ class TLSHandshakeTest(nettest.NetTestCase):
 
             return None
 
+        def deferMakeConnection(host):
+            return threads.deferToThread(makeConnection, self.input)
+
         connection = deferMakeConnection(self.input)
         connection.addCallbacks(connectionSucceeded, connectionFailed,
                                 callbackArgs=[self.input, self.timeout],



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits