diff --git a/Lib/test/test_asyncio/test_sslproto.py b/Lib/test/test_asyncio/test_sslproto.py index c534a341352b00..821d0d6e657751 100644 --- a/Lib/test/test_asyncio/test_sslproto.py +++ b/Lib/test/test_asyncio/test_sslproto.py @@ -248,6 +248,7 @@ async def client(addr): def test_start_tls_server_1(self): HELLO_MSG = b'1' * 1024 * 1024 + TIMEOUT = 60 # seconds server_context = test_utils.simple_server_sslcontext() client_context = test_utils.simple_client_sslcontext() @@ -256,7 +257,7 @@ def test_start_tls_server_1(self): def client(sock, addr): time.sleep(0.5) - sock.settimeout(5) + sock.settimeout(TIMEOUT) sock.connect(addr) data = sock.recv_all(len(HELLO_MSG)) @@ -309,7 +310,7 @@ async def main(): with self.tcp_client(lambda sock: client(sock, addr)): self.loop.run_until_complete( - asyncio.wait_for(main(), loop=self.loop, timeout=10)) + asyncio.wait_for(main(), loop=self.loop, timeout=TIMEOUT * 2)) def test_start_tls_wrong_args(self): async def main(): @@ -332,7 +333,6 @@ def new_loop(self): @unittest.skipIf(ssl is None, 'No ssl module') @unittest.skipUnless(hasattr(asyncio, 'ProactorEventLoop'), 'Windows only') -@unittest.skipIf(os.environ.get('APPVEYOR'), 'XXX: issue 32458') class ProactorStartTLSTests(BaseStartTLS, unittest.TestCase): def new_loop(self):