Skip to content

Commit 66b4221

Browse files
committed
Increase timeouts for asyncio SSL tests
1 parent ad106c6 commit 66b4221

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Lib/test/test_asyncio/test_ssl.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ async def wait_closed(self, obj):
179179
def test_create_server_ssl_1(self):
180180
CNT = 0 # number of clients that were successful
181181
TOTAL_CNT = 25 # total number of clients that test will create
182-
TIMEOUT = 10.0 # timeout for this test
182+
TIMEOUT = 60.0 # timeout for this test
183183

184184
A_DATA = b'A' * 1024 * 1024
185185
B_DATA = b'B' * 1024 * 1024
@@ -238,7 +238,7 @@ def prog(sock):
238238

239239
async def start_server():
240240
extras = {}
241-
extras = dict(ssl_handshake_timeout=10.0)
241+
extras = dict(ssl_handshake_timeout=40.0)
242242

243243
srv = await asyncio.start_server(
244244
handle_client,
@@ -303,7 +303,7 @@ def server(sock):
303303

304304
async def client(addr):
305305
extras = {}
306-
extras = dict(ssl_handshake_timeout=10.0)
306+
extras = dict(ssl_handshake_timeout=40.0)
307307

308308
reader, writer = await asyncio.open_connection(
309309
*addr,
@@ -466,7 +466,7 @@ async def client(addr):
466466
*addr,
467467
ssl=client_sslctx,
468468
server_hostname='',
469-
ssl_handshake_timeout=10.0),
469+
ssl_handshake_timeout=40.0),
470470
0.5)
471471

472472
with self.tcp_server(server,
@@ -590,7 +590,7 @@ def client():
590590

591591
extras = {}
592592
if server_ssl:
593-
extras = dict(ssl_handshake_timeout=10.0)
593+
extras = dict(ssl_handshake_timeout=40.0)
594594

595595
f = loop.create_task(
596596
loop.connect_accepted_socket(
@@ -1019,7 +1019,7 @@ async def run_main():
10191019
def test_create_server_ssl_over_ssl(self):
10201020
CNT = 0 # number of clients that were successful
10211021
TOTAL_CNT = 25 # total number of clients that test will create
1022-
TIMEOUT = 10.0 # timeout for this test
1022+
TIMEOUT = 60.0 # timeout for this test
10231023

10241024
A_DATA = b'A' * 1024 * 1024
10251025
B_DATA = b'B' * 1024 * 1024
@@ -1186,7 +1186,7 @@ def server(sock):
11861186

11871187
async def client(addr):
11881188
extras = {}
1189-
extras = dict(ssl_handshake_timeout=10.0)
1189+
extras = dict(ssl_handshake_timeout=40.0)
11901190

11911191
reader, writer = await asyncio.open_connection(
11921192
*addr,

0 commit comments

Comments
 (0)