diff options
author | Victor Stinner <vstinner@python.org> | 2022-05-06 16:18:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-06 15:18:56 +0100 |
commit | 973a5203c151efb7a86a478140f7b0c9ae70438f (patch) | |
tree | df38ec19a38e0751f601014266196f9c62571c15 | |
parent | gh-90997: Show cached inline values in `dis` output (#92360) (diff) | |
download | cpython-973a5203c151efb7a86a478140f7b0c9ae70438f.tar.gz cpython-973a5203c151efb7a86a478140f7b0c9ae70438f.tar.bz2 cpython-973a5203c151efb7a86a478140f7b0c9ae70438f.zip |
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.
-rw-r--r-- | Lib/test/test_asyncio/test_ssl.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_asyncio/test_ssl.py b/Lib/test/test_asyncio/test_ssl.py index 67684ab09e6..9ba6ba04b32 100644 --- a/Lib/test/test_asyncio/test_ssl.py +++ b/Lib/test/test_asyncio/test_ssl.py @@ -62,7 +62,7 @@ class MyBaseProto(asyncio.Protocol): class TestSSL(test_utils.TestCase): PAYLOAD_SIZE = 1024 * 100 - TIMEOUT = 60 + TIMEOUT = support.LONG_TIMEOUT def setUp(self): super().setUp() @@ -179,7 +179,7 @@ class TestSSL(test_utils.TestCase): def test_create_server_ssl_1(self): CNT = 0 # number of clients that were successful TOTAL_CNT = 25 # total number of clients that test will create - TIMEOUT = 60.0 # timeout for this test + TIMEOUT = support.LONG_TIMEOUT # timeout for this test A_DATA = b'A' * 1024 * 1024 B_DATA = b'B' * 1024 * 1024 @@ -1019,7 +1019,7 @@ class TestSSL(test_utils.TestCase): def test_create_server_ssl_over_ssl(self): CNT = 0 # number of clients that were successful TOTAL_CNT = 25 # total number of clients that test will create - TIMEOUT = 30.0 # timeout for this test + TIMEOUT = support.LONG_TIMEOUT # timeout for this test A_DATA = b'A' * 1024 * 1024 B_DATA = b'B' * 1024 * 1024 |