Skip to content

Commit d9eaf21

Browse files
test(server): host casing test passes on case-insensitive Macs
The test decided its expected result by asking whether the upper-cased path exists, to detect the Windows runner. That is also true on a Mac, where the linux row still compares case-sensitively, so it failed on every Mac. It now checks the real host. Model: Opus 5.5 Harness: Claude Code in T3 Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 6fe77ad commit d9eaf21

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎apps/server/src/storageCleanup.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2222,6 +2222,7 @@ describe("orphan worktree reports", () => {
22222222
(platform) =>
22232223
runCleanupTest(
22242224
Effect.gen(function* () {
2225+
const hostIsWindows = yield* HostProcess.isWindows;
22252226
const fixture = yield* cleanupFixture().pipe(
22262227
Effect.provideService(HostProcess.Platform, platform),
22272228
);
@@ -2238,9 +2239,8 @@ describe("orphan worktree reports", () => {
22382239
fixture.setProjectRoots([fixture.repo, project, `${nested}/child`]);
22392240
const report = yield* fixture.service.runNow;
22402241
expect(report.entries.map((entry) => entry.path).sort()).toEqual(
2241-
platform === "win32" || (yield* fixture.fs.exists(referenced.toUpperCase()))
2242-
? []
2243-
: [referenced],
2242+
// The real Windows path layer folds case whatever platform the service is told it runs on.
2243+
platform === "win32" || hostIsWindows ? [] : [referenced],
22442244
);
22452245
}),
22462246
),

0 commit comments

Comments
 (0)