Skip to content

Commit

Permalink
gh-117552: Add timeout in HTTPHandlerTest (#117553)
Browse files Browse the repository at this point in the history
  • Loading branch information
colesbury authored Apr 8, 2024
1 parent ca62ffd commit 59864ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/test/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -2191,7 +2191,8 @@ def test_output(self):
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':
Expand Down

0 comments on commit 59864ed

Please sign in to comment.