diff options
author | Alistair Coles <alistairncoles@gmail.com> | 2023-04-25 11:36:01 +0100 |
---|---|---|
committer | Alistair Coles <alistairncoles@gmail.com> | 2023-04-25 11:36:01 +0100 |
commit | 61b6ec26337a576a2f46831a42f1b46c9fa60af8 (patch) | |
tree | de9dbc3a5532f6af2179307c33e3aa11cd81b95c /test | |
parent | 029c921871cfa364fef1aa4d9a53bad3aef405b2 (diff) | |
download | swift-61b6ec26337a576a2f46831a42f1b46c9fa60af8.tar.gz |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/proxy/controllers/test_obj.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/unit/proxy/controllers/test_obj.py b/test/unit/proxy/controllers/test_obj.py index bf32a059a..79753e00b 100644 --- a/test/unit/proxy/controllers/test_obj.py +++ b/test/unit/proxy/controllers/test_obj.py @@ -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 |