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

art at torproject.org art at torproject.org
Tue Apr 30 13:01:44 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 files changed, 3 insertions(+), 0 deletions(-)

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