-
Notifications
You must be signed in to change notification settings - Fork 609
Open
Description
In AbstractMcpSyncClientTests, there is a test case called {testCallTool](
java-sdk/mcp/src/test/java/io/modelcontextprotocol/client/AbstractMcpSyncClientTests.java
Line 238 in 110a8d1
void testCallTool() { |
on line 247 is this assertion:
assertThat(result.isError()).isNull();
Although currently satisfied by the 'everything server' (assertion passes with javascript server) this assumes that the result.isError() (a Boolean value) is null if there is no error. Since 'isError() is set to 'false' and not null on success (by java server at least) this line should probably be:
assertThat(result.isError()).isFalse();
and that the everything server should be fixed to return isError=false rather than isError=null as it does currently.
Metadata
Metadata
Assignees
Labels
No labels