File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
main/java/com/github/codeboyzhou/mcp/declarative/server
test/java/com/github/codeboyzhou/mcp/declarative Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ public void start() {
77
77
final boolean testing = Boolean .parseBoolean (System .getProperty ("mcp.declarative.java.sdk.testing" ));
78
78
if (testing ) {
79
79
logger .debug ("Jetty-based HTTP server is running in test mode, not waiting for HTTP server to stop" );
80
+ httpserver .stop ();
80
81
return ;
81
82
}
82
83
Original file line number Diff line number Diff line change @@ -96,10 +96,10 @@ void testStartSyncSseServer() {
96
96
McpSseServerInfo serverInfo = McpSseServerInfo .builder ()
97
97
.instructions ("test-mcp-sync-sse-server-instructions" )
98
98
.requestTimeout (Duration .ofSeconds (10 ))
99
- .baseUrl ("http://127.0.0.1:8081 " )
99
+ .baseUrl ("http://127.0.0.1:8080 " )
100
100
.messageEndpoint ("/message" )
101
101
.sseEndpoint ("/sse" )
102
- .port (8081 )
102
+ .port (8080 )
103
103
.name ("test-mcp-sync-sse-server" )
104
104
.version ("1.0.0" )
105
105
.build ();
You can’t perform that action at this time.
0 commit comments