diff --git a/litellm/tests/test_async_fn.py b/litellm/tests/test_async_fn.py index 72e6fc3a7e..3d83822ef1 100644 --- a/litellm/tests/test_async_fn.py +++ b/litellm/tests/test_async_fn.py @@ -19,7 +19,7 @@ def test_async_response(): try: response = await acompletion(model="gpt-3.5-turbo", messages=messages) except Exception as e: - pass + pytest.fail(f"An exception occurred: {e}") response = asyncio.run(test_get_response()) # print(response) @@ -51,7 +51,7 @@ def test_get_response_streaming(): assert len(output) > 0, "Length of output needs to be greater than 0." except Exception as e: - pass + pytest.fail(f"An exception occurred: {e}") return response asyncio.run(test_async_call())