Skip to content

Commit 086343a

Browse files
committed
chore: #902 added header and author
1 parent 30a5fbd commit 086343a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

mcp-test/src/test/java/io/modelcontextprotocol/server/McpCompletionFlakyReproductionTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024-2025 the original author or authors.
2+
* Copyright 2026-2026 the original author or authors.
33
*/
44

55
package io.modelcontextprotocol.server;
@@ -31,11 +31,11 @@
3131

3232
/**
3333
* Reproduces the flaky McpCompletionTests.testCompletionErrorOnMissingContext failure.
34-
*
3534
* Root cause: completion handler throws McpError → server sends error via SSE → SSE write
3635
* fails (connection broken under load) → session removed → next request gets 404.
37-
*
3836
* Simulated by abruptly closing the TCP socket inside the handler before throwing.
37+
*
38+
* @author Andrei Shakirin
3939
*/
4040
class McpCompletionFlakyReproductionTest {
4141

@@ -70,7 +70,7 @@ void teardown() {
7070
}
7171

7272
@Test
73-
void reproduceRaceConditionWithArtificialDelay() throws Exception {
73+
void reproduceRaceConditionWithArtificialDelay() {
7474
var ref = new ResourceReference(ResourceReference.TYPE, "db://{database}/{table}");
7575
var resource = McpSchema.Resource.builder().uri("db://{database}/{table}").name("Database Table").build();
7676

0 commit comments

Comments
 (0)