33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
From 368af5db55e89f6bbd64995c62f1cbc7ba642dcf Mon Sep 17 00:00:00 2001
|
|
From: rpm-build <rpm-build>
|
|
Date: Tue, 7 Apr 2026 09:49:35 +0100
|
|
Subject: [PATCH] Increase timeout in test_request_timeout
|
|
|
|
Some architectures -- e.g. ppc64le -- need an increased request timeout.
|
|
This situation is similar to upstream change 2195f0b72, where the
|
|
timeout was increased for Windows.
|
|
|
|
[1] https://github.com/tornadoweb/tornado/commit/2195f0b72249738
|
|
---
|
|
tornado/test/simple_httpclient_test.py | 4 +---
|
|
1 file changed, 1 insertion(+), 3 deletions(-)
|
|
|
|
diff --git a/tornado/test/simple_httpclient_test.py b/tornado/test/simple_httpclient_test.py
|
|
index a40435e..935f50c 100644
|
|
--- a/tornado/test/simple_httpclient_test.py
|
|
+++ b/tornado/test/simple_httpclient_test.py
|
|
@@ -316,9 +316,7 @@ class SimpleHTTPClientTestMixin(AsyncTestCase):
|
|
yield gen.sleep(0.2)
|
|
|
|
def test_request_timeout(self):
|
|
- timeout = 0.1
|
|
- if os.name == "nt":
|
|
- timeout = 0.5
|
|
+ timeout = 0.5
|
|
|
|
with self.assertRaises(HTTPTimeoutError):
|
|
self.fetch("/trigger?wake=false", request_timeout=timeout, raise_error=True)
|
|
--
|
|
2.49.0
|
|
|