aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_tcp.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_tcp.py')
-rw-r--r--test/test_tcp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_tcp.py b/test/test_tcp.py
index e7524fdc..6ff42072 100644
--- a/test/test_tcp.py
+++ b/test/test_tcp.py
@@ -90,7 +90,7 @@ class TestServerSSL(test.ServerTestBase):
def test_echo(self):
c = tcp.TCPClient("127.0.0.1", self.port)
c.connect()
- c.convert_to_ssl(sni="foo.com")
+ c.convert_to_ssl(sni="foo.com", options=tcp.OP_ALL)
testval = "echo!\n"
c.wfile.write(testval)
c.wfile.flush()
@@ -193,6 +193,7 @@ class TestTimeOut(test.ServerTestBase):
c = tcp.TCPClient("127.0.0.1", self.port)
c.connect()
c.settimeout(0.1)
+ assert c.gettimeout() == 0.1
tutils.raises(tcp.NetLibTimeout, c.rfile.read, 10)