Skip to content

Commit

Permalink
pythongh-117552: Add timeout in HTTPHandlerTest (python#117553)
Browse files Browse the repository at this point in the history
  • Loading branch information
colesbury authored and diegorusso committed Apr 17, 2024
1 parent 18ac5a6 commit bae5ba6
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 bae5ba6

Please sign in to comment.