Fix the test for now-removed log message
@@ -190,9 +190,8 @@ async def test_long_line_parsing(
]
)
async def test_list_objs_connection_errors_are_caught(
- settings, resource, stream, namespace, enforced_session, mocker, caplog, connection_error):
+ settings, resource, stream, namespace, enforced_session, mocker, connection_error):
- caplog.set_level(logging.DEBUG)
enforced_session.request = mocker.Mock(side_effect=connection_error())
stream.feed([], namespace=namespace)
stream.close(namespace=namespace)
@@ -205,4 +204,3 @@ async def test_list_objs_connection_errors_are_caught(
events.append(event)
assert len(events) == 0
- assert "Could not list objs" in caplog.text
