Skip to content

Commit b3abafe

Browse files
committed
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.
1 parent bc39729 commit b3abafe

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
@@ -1134,7 +1134,7 @@ def test_large_content_length(self):
11341134
self.assertEqual(res.read(), b'%d %d' % (size, size) + self.linesep)
11351135

11361136
def test_large_content_length_truncated(self):
1137-
with support.swap_attr(self.request_handler, 'timeout', 0.001):
1137+
with support.swap_attr(self.request_handler, 'timeout', support.LOOPBACK_TIMEOUT):
11381138
for w in range(18, 65):
11391139
size = 1 << w
11401140
headers = {'Content-Length' : str(size)}

0 commit comments

Comments
 (0)