Assert ChunkWriteTimeout errors are logged

The test claimed to assert that ChunkWriteTimeouts are logged, but
the test would in fact pass if the timeouts were not logged.

Change-Id: Ic9d119858397e8aeccaf7f89487f9e62f16ee453
This commit is contained in:
Alistair Coles 2023-04-25 11:36:01 +01:00
parent 029c921871
commit 61b6ec2633

View File

@ -4959,6 +4959,7 @@ class TestECObjController(ECObjectControllerMixin, unittest.TestCase):
resp_body += b''.join(resp.app_iter)
# we log errors
log_lines = self.app.logger.get_lines_for_level('error')
self.assertTrue(log_lines)
for line in log_lines:
self.assertIn('ChunkWriteTimeout fetching fragments', line)
# client gets a short read