Skip to content

Commit e37db23

Browse files
[3.13] Increase the timeout of test_large_content_length_truncated (GH-156398)
Increase the timeout of test_large_content_length_truncated In Fedora, the test started to fail randomly when run on s390x architecture. Increasing the timeout prevents the issue. (cherry picked from commit 39921eb) Co-authored-by: Karolina Surma <33810531+befeleme@users.noreply.github.com>
1 parent b1d15b5 commit e37db23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_httpservers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ def test_large_content_length(self):
10231023
self.assertEqual(res.read(), b'%d %d' % (size, size) + self.linesep)
10241024

10251025
def test_large_content_length_truncated(self):
1026-
with support.swap_attr(self.request_handler, 'timeout', 0.001):
1026+
with support.swap_attr(self.request_handler, 'timeout', support.LOOPBACK_TIMEOUT):
10271027
for w in range(18, 65):
10281028
size = 1 << w
10291029
headers = {'Content-Length' : str(size)}

0 commit comments

Comments
 (0)