You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 926a0d3
Browse filesBrowse the repository at this point in the historyBrowse files
test(mcp-test): deflake streamable HTTP version-negotiation integration test
- tolerate an absent MCP-Protocol-Version header in the context extractor: Map.of rejects null values while spec-correct clients legitimately omit the header on initialize requests
- await the asynchronously opened GET /mcp stream before asserting recorded calls; observed intermittently in CI as AssertionError Expected size: 3 but was: 2 (evidence: actions/run/33069467622 Jackson 2 Integration Tests)
Copy file name to clipboardExpand all lines: mcp-test/src/test/java/io/modelcontextprotocol/common/HttpClientStreamableHttpVersionNegotiationIntegrationTests.java
+13-2Lines changed: 13 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,10 @@
4
4
5
5
packageio.modelcontextprotocol.common;
6
6
7
+
importjava.time.Duration;
7
8
importjava.util.List;
8
9
importjava.util.Map;
10
+
importjava.util.Objects;
9
11
importjava.util.function.BiFunction;
10
12
11
13
importio.modelcontextprotocol.client.McpClient;
@@ -22,6 +24,7 @@
22
24
importorg.apache.catalina.LifecycleException;
23
25
importorg.apache.catalina.LifecycleState;
24
26
importorg.apache.catalina.startup.Tomcat;
27
+
importstaticorg.awaitility.Awaitility.await;
25
28
importorg.junit.jupiter.api.AfterEach;
26
29
importorg.junit.jupiter.api.Test;
27
30
@@ -37,8 +40,10 @@ class HttpClientStreamableHttpVersionNegotiationIntegrationTests {
0 commit comments