added fix

This commit is contained in:
vasilije 2025-08-27 14:39:32 +02:00
parent 5e6ada2a65
commit 792452b735

View file

@ -87,14 +87,12 @@ class TestCliIntegration:
stderr_lower = result.stderr.lower()
has_error = "error" in stderr_lower
has_expected_failure = "failed to add data" in stderr_lower
has_litellm_cancellation = "loggingworker cancelled" in stderr_lower or "cancellederror" in stderr_lower
assert (
not has_error
or has_expected_failure
or has_litellm_cancellation
has_litellm_cancellation = (
"loggingworker cancelled" in stderr_lower or "cancellederror" in stderr_lower
)
assert not has_error or has_expected_failure or has_litellm_cancellation
finally:
os.unlink(temp_file)