added fix
This commit is contained in:
parent
5e6ada2a65
commit
792452b735
1 changed files with 4 additions and 6 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue