mcp: migrate tests to expectJson

This commit is contained in:
Adrià Arrufat
2026-03-03 14:40:20 +09:00
parent c8d5665653
commit 34999f12ca
2 changed files with 7 additions and 9 deletions

View File

@@ -101,6 +101,5 @@ test "MCP.Server - Integration: synchronous smoke test" {
try router.processRequests(server, &in_reader);
const output = out_alloc.writer.buffered();
try testing.expect(std.mem.indexOf(u8, output, "\"id\":1") != null);
try testing.expectJson(.{ .id = 1 }, out_alloc.writer.buffered());
}