mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-117552: Add timeout in HTTPHandlerTest (#117553)
This commit is contained in:
parent
ca62ffd1a5
commit
59864edd57
1 changed files with 2 additions and 1 deletions
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue