Skip to content

Commit 916f011

Browse files
committed
gh-142489: Increase ssl_handshake_timeout in asyncio tests
Replace SHORT_TIMEOUT with LONG_TIMEOUT for very slow CIs.
1 parent 2db9573 commit 916f011

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Lib/test/test_asyncio/test_ssl.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def prog(sock):
258258

259259
async def start_server():
260260
extras = {}
261-
extras = dict(ssl_handshake_timeout=support.SHORT_TIMEOUT)
261+
extras = dict(ssl_handshake_timeout=support.LONG_TIMEOUT)
262262

263263
srv = await asyncio.start_server(
264264
handle_client,
@@ -323,7 +323,7 @@ def server(sock):
323323

324324
async def client(addr):
325325
extras = {}
326-
extras = dict(ssl_handshake_timeout=support.SHORT_TIMEOUT)
326+
extras = dict(ssl_handshake_timeout=support.LONG_TIMEOUT)
327327

328328
reader, writer = await asyncio.open_connection(
329329
*addr,
@@ -448,7 +448,7 @@ async def client(addr):
448448
*addr,
449449
ssl=client_sslctx,
450450
server_hostname='',
451-
ssl_handshake_timeout=support.SHORT_TIMEOUT)
451+
ssl_handshake_timeout=support.LONG_TIMEOUT)
452452
writer.close()
453453
await self.wait_closed(writer)
454454

@@ -610,7 +610,7 @@ def client():
610610

611611
extras = {}
612612
if server_ssl:
613-
extras = dict(ssl_handshake_timeout=support.SHORT_TIMEOUT)
613+
extras = dict(ssl_handshake_timeout=support.LONG_TIMEOUT)
614614

615615
f = loop.create_task(
616616
loop.connect_accepted_socket(
@@ -1210,7 +1210,7 @@ def server(sock):
12101210

12111211
async def client(addr):
12121212
extras = {}
1213-
extras = dict(ssl_handshake_timeout=support.SHORT_TIMEOUT)
1213+
extras = dict(ssl_handshake_timeout=support.LONG_TIMEOUT)
12141214

12151215
reader, writer = await asyncio.open_connection(
12161216
*addr,

0 commit comments

Comments
 (0)