summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_logging.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 7b5bc6b..c3c4de0 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -2191,7 +2191,8 @@ class HTTPHandlerTest(BaseTest):
self.handled.clear()
msg = "sp\xe4m"
logger.error(msg)
- self.handled.wait()
+ handled = self.handled.wait(support.SHORT_TIMEOUT)
+ self.assertTrue(handled, "HTTP request timed out")
self.assertEqual(self.log_data.path, '/frob')
self.assertEqual(self.command, method)
if method == 'GET':