Skip to content

Commit dcaa81a

Browse files
committed
test(server): use injected host platform
1 parent d822fa3 commit dcaa81a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/server/src/vcs/GitVcsDriverCore.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4758,6 +4758,7 @@ it.layer(layerTest)("GitVcsDriver core integration", (it) => {
47584758

47594759
it.effect("keeps generated worktree folders short and valid on Windows", () =>
47604760
Effect.gen(function* () {
4761+
const platform = yield* HostProcess.Platform;
47614762
const pathService = yield* Path.Path;
47624763
const cwd = yield* makeTmpDir();
47634764
const { initialBranch } = yield* initRepoWithCommit(cwd);
@@ -4774,7 +4775,7 @@ it.layer(layerTest)("GitVcsDriver core integration", (it) => {
47744775
`${"a".repeat(22)}😀/${"b".repeat(30)}`,
47754776
"z".repeat(41),
47764777
// The files ref backend cannot create or lock these branch names on Windows.
4777-
...(process.platform === "win32"
4778+
...(platform === "win32"
47784779
? []
47794780
: [
47804781
"fix/a<b",

0 commit comments

Comments
 (0)