Skip to content

Commit 2ee62da

Browse files
committed
fix tests
1 parent 5aa33a9 commit 2ee62da

File tree

1 file changed

+3
-2
lines changed
  • models/spring-ai-anthropic/src/test/java/org/springframework/ai/anthropic/api

1 file changed

+3
-2
lines changed

models/spring-ai-anthropic/src/test/java/org/springframework/ai/anthropic/api/AnthropicApiIT.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,9 @@ void chatCompletionStreamError() {
358358

359359
assertThatThrownBy(() -> response.collectList().block()).isInstanceOf(RuntimeException.class)
360360
.hasMessageStartingWith("Response exception, Status: [")
361-
.hasMessageContaining(
362-
"{\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"invalid x-api-key\"}");
361+
.hasMessageContaining("\"type\":\"error\"")
362+
.hasMessageContaining("\"type\":\"authentication_error\"")
363+
.hasMessageContaining("\"message\":\"invalid x-api-key\"");
363364
}
364365

365366
}

0 commit comments

Comments
 (0)