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 { Settings } from "@oh-my-pi/pi-coding-agent/config/settings";
import { createTools, type ToolSession } from "@oh-my-pi/pi-coding-agent/tools";
import { removeWithRetries } from "@oh-my-pi/pi-utils";
// Regression for grievances #208 (find) and #209 (search): a multi-path call
// that includes an entry which does not exist on disk must not abort the whole
@@ -39,7 +40,7 @@ describe("multi-path tools tolerate missing entries", () => {
});
afterEach(async () => {
await fs.rm(tempDir, { recursive: true, force: true });
await removeWithRetries(tempDir);
});
it("search returns matches from existing paths and reports the missing one", async () => {