Skip to content

Commit 077e632

Browse files
committed
Fix typo
1 parent fa352fa commit 077e632

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

orchestration/src/test/java/com/sap/ai/sdk/orchestration/OrchestrationUnitTest.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,9 @@ void testGrounding() throws IOException {
224224
.isEqualTo("assistant");
225225
assertThat(orchestrationResult.getChoices().get(0).getFinishReason()).isEqualTo("stop");
226226

227-
try (var requestInputStream = fileLoader.apply("groundingREquest.json")) {
228-
final String requestBody = new String(requestInputStream.readAllBytes());
229-
verify(
230-
postRequestedFor(urlPathEqualTo("/completion"))
231-
.withRequestBody(equalToJson(requestBody)));
232-
}
227+
final String requestBody = new String(fileLoader.apply("groundingRequest.json").readAllBytes());
228+
verify(
229+
postRequestedFor(urlPathEqualTo("/completion")).withRequestBody(equalToJson(requestBody)));
233230
}
234231

235232
@Test

0 commit comments

Comments
 (0)