Skip to content

Commit 6806e1e

Browse files
authored
Fix: Fix CI failures (#3844)
* fix: Fix CI failures Signed-off-by: Sun Yuhan <sunyuhan1998@users.noreply.github.com>
1 parent 9d1e1b5 commit 6806e1e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mcp/common/src/test/java/org/springframework/ai/mcp/AsyncMcpToolCallbackTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void callShouldThrowOnError() {
3434
assertThatThrownBy(() -> callback.call("{\"param\":\"value\"}")).isInstanceOf(ToolExecutionException.class)
3535
.cause()
3636
.isInstanceOf(IllegalStateException.class)
37-
.hasMessage("Error calling tool: [TextContent[annotations=null, text=Some error data]]");
37+
.hasMessage("Error calling tool: [TextContent[annotations=null, text=Some error data, meta=null]]");
3838
}
3939

4040
@Test

mcp/common/src/test/java/org/springframework/ai/mcp/SyncMcpToolCallbackTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ void callShouldThrowOnError() {
114114
assertThatThrownBy(() -> callback.call("{\"param\":\"value\"}")).isInstanceOf(ToolExecutionException.class)
115115
.cause()
116116
.isInstanceOf(IllegalStateException.class)
117-
.hasMessage("Error calling tool: [TextContent[annotations=null, text=Some error data]]");
117+
.hasMessage("Error calling tool: [TextContent[annotations=null, text=Some error data, meta=null]]");
118118
}
119119

120120
@Test

0 commit comments

Comments
 (0)