Skip to content

Commit 5ec9e7d

Browse files
cliffhallclaude
andcommitted
test(filesystem): give the real HFS+ volume test an explicit timeout
The hdiutil create, attach and detach calls can pass vitest's 5 s default on a loaded machine, failing the gate on timing alone. Size the timeout for them (30 s) rather than retrying. Closes modelcontextprotocol#5314 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: cliffhall <[email protected]>
1 parent 446be48 commit 5ec9e7d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎src/filesystem/__tests__/pinned-directory.test.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,10 @@ describe("createDirectoryInPlace", () => {
908908
execFileSync("hdiutil", ["detach", mount, "-quiet"]);
909909
}
910910
},
911+
// hdiutil create, attach and detach together take about 1.5 s on an idle
912+
// machine and can pass vitest's 5 s default under load (#5314). A
913+
// timeout sized for them, never a retry, which would hide a real failure.
914+
30_000,
911915
);
912916

913917
it("reports a failure to enter a directory other than a missing one as is", () => {

0 commit comments

Comments
 (0)