From 75614bc29c7dbe1a5fb91e409e2f24266b1ae092 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 28 Mar 2024 12:43:46 -0700 Subject: [PATCH] (fix) img gen endpoints unstable --- tests/test_openai_endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_openai_endpoints.py b/tests/test_openai_endpoints.py index 51ec70371..432f2f1ab 100644 --- a/tests/test_openai_endpoints.py +++ b/tests/test_openai_endpoints.py @@ -201,7 +201,7 @@ async def image_generation(session, key): if ( "Connection error" in response_text ): # OpenAI endpoint returns a connection error - pass + return raise Exception(f"Request did not return a 200 status code: {status}")