Merge PR #3354: fix: migrate coding-agent tests to removeWithRetries (@oldschoola)

This commit is contained in:
can1357
2026-06-27 02:06:38 +02:00
203 changed files with 571 additions and 437 deletions
@@ -4,6 +4,7 @@ import * as os from "node:os";
import * as path from "node:path";
import { type MCPServer, mcpCapability } from "@oh-my-pi/pi-coding-agent/capability/mcp";
import { loadCapability } from "@oh-my-pi/pi-coding-agent/discovery";
import { removeWithRetries } from "@oh-my-pi/pi-utils";
async function loadOpenCodeMcpConfig(cwd: string): Promise<MCPServer[]> {
const result = await loadCapability<MCPServer>(mcpCapability.id, {
@@ -21,7 +22,7 @@ describe("OpenCode MCP discovery", () => {
});
afterEach(async () => {
await fs.rm(tempDir, { recursive: true, force: true });
await removeWithRetries(tempDir);
});
test("normalizes array commands and OpenCode environment fields", async () => {