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

isis at torproject.org isis at torproject.org
Thu Jun 6 16:41:37 UTC 2013


commit 5e1f148a6171efddc96afdd6930978387a052cb5
Author: Isis Lovecruft <isis at torproject.org>
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],





More information about the tor-commits mailing list