Skip to content

Commit fc5bc6d

Browse files
authored
tests: fix flaky mcp test (#2935)
1 parent d5fd611 commit fc5bc6d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/mcp/test_mcp.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ T["MCP"] = MiniTest.new_set()
4141

4242
T["MCP"]["start() starts and initializes the client once"] = function()
4343
local transformed_config = child.lua([[
44-
return MCP.transform_to_acp()
44+
local result = MCP.transform_to_acp()
45+
table.sort(result, function(a, b) return a.name < b.name end)
46+
return result
4547
]])
4648

4749
h.eq({

0 commit comments

Comments
 (0)