Skip to content

Commit 6982e62

Browse files
authored
[MCP] Fixed resource path in test (#9091)
1 parent 1e4b904 commit 6982e62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/HotChocolate/Adapters/test/Adapters.Mcp.Tests/IntegrationTestBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -953,13 +953,13 @@ public async Task ReadResource_Missing_ThrowsException()
953953
var mcpClient = await CreateMcpClientAsync(server.CreateClient());
954954

955955
// act
956-
async Task Action() => await mcpClient.ReadResourceAsync("ui://open-ai-components/missing.html");
956+
async Task Action() => await mcpClient.ReadResourceAsync("ui://views/missing.html");
957957

958958
// assert
959959
var exception = await Assert.ThrowsAsync<McpProtocolException>(Action);
960960
Assert.EndsWith("Resource not found.", exception.Message);
961961
Assert.Equal(-32002, (int)exception.ErrorCode);
962-
Assert.Equal("ui://open-ai-components/missing.html", exception.Data["uri"]);
962+
Assert.Equal("ui://views/missing.html", exception.Data["uri"]);
963963
}
964964

965965
[Fact]

0 commit comments

Comments
 (0)