Skip to content

Commit

Permalink
chore: Refactor OpenAiCompatibleV1ApiControllerTest to improve code r…
Browse files Browse the repository at this point in the history
…eadability and remove unused imports
  • Loading branch information
amengus87 committed Aug 1, 2024
1 parent 68e09fd commit 2610c09
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;

import java.io.File;
import java.io.InterruptedIOException;
Expand Down Expand Up @@ -165,7 +164,7 @@ void testModelDoesntExistOpenAI() {
.build();
OpenAiHttpException exception = assertThrows(OpenAiHttpException.class,
() -> client.completion(request).execute());
assertTrue(exception.code() == 404);
assertEquals(404, exception.code());
}

@Test
Expand Down

0 comments on commit 2610c09

Please sign in to comment.