diff --git a/tests/conftest.py b/tests/conftest.py index a151eb6b8..1df04b608 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -116,10 +116,8 @@ def run_and_wait( logs = running_container.logs().decode("utf-8") assert isinstance(logs, str) LOGGER.debug(logs) - if no_warnings: - assert not self.get_warnings(logs) - if no_errors: - assert not self.get_errors(logs) + assert no_warnings == (not self.get_warnings(logs)) + assert no_errors == (not self.get_errors(logs)) assert no_failure == (rv["StatusCode"] == 0) return logs