Skip to content

Commit 973a520

Browse files
authored
gh-90978: test_ssl of test_asyncio uses LONG_TIMEOUT (#92402)
On slow buildbot workers, some test_ssl tests fail randomly because of short timeout (30 seconds). Use support.LONG_TIMEOUT instead which is longer and also adjusted (by regrtest --timeout option) on buildbot workers known to be slow.
1 parent 93a666b commit 973a520

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_asyncio/test_ssl.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def connection_lost(self, exc):
6262
class TestSSL(test_utils.TestCase):
6363

6464
PAYLOAD_SIZE = 1024 * 100
65-
TIMEOUT = 60
65+
TIMEOUT = support.LONG_TIMEOUT
6666

6767
def setUp(self):
6868
super().setUp()
@@ -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 = 60.0 # timeout for this test
182+
TIMEOUT = support.LONG_TIMEOUT # timeout for this test
183183

184184
A_DATA = b'A' * 1024 * 1024
185185
B_DATA = b'B' * 1024 * 1024
@@ -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 = 30.0 # timeout for this test
1022+
TIMEOUT = support.LONG_TIMEOUT # timeout for this test
10231023

10241024
A_DATA = b'A' * 1024 * 1024
10251025
B_DATA = b'B' * 1024 * 1024

0 commit comments

Comments
 (0)