Skip to content

Commit 628b20a

Browse files
committed
test: skip symlink cases on Windows
1 parent 3c11308 commit 628b20a

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

‎packages/core/test/pty/activity.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe("PtyActivity", () => {
2828
expect(InstanceActivity.snapshot(canonicalIdentity).generation).toBeGreaterThan(running)
2929
})
3030

31-
test("keeps the owning identity across rename and symlink replacement", async () => {
31+
test.skipIf(process.platform === "win32")("keeps the owning identity across rename and symlink replacement", async () => {
3232
const root = await mkdtemp(join(tmpdir(), "opencode-pty-retarget-"))
3333
const owner = join(root, "owner")
3434
const moved = join(root, "moved")

‎packages/opencode/test/project/instance.test.ts‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ const it = testEffect(
2626
]),
2727
)
2828

29+
const symlinkEffect = process.platform === "win32" ? it.effect.skip : it.effect
30+
const symlinkLive = process.platform === "win32" ? it.live.skip : it.live
31+
2932
const setBootstrap = (run: Effect.Effect<void>) =>
3033
Effect.acquireRelease(
3134
Effect.sync(() => {
@@ -371,7 +374,7 @@ describe("InstanceStore", () => {
371374
}),
372375
)
373376

374-
it.effect("keeps entry activity stable when its pathname is replaced", () =>
377+
symlinkEffect("keeps entry activity stable when its pathname is replaced", () =>
375378
Effect.gen(function* () {
376379
const root = yield* tmpdirScoped({ git: true })
377380
const owner = join(root, "owner")
@@ -405,7 +408,7 @@ describe("InstanceStore", () => {
405408
}),
406409
)
407410

408-
it.effect("keeps a remembered symlink alias stable for the entry lifetime", () =>
411+
symlinkEffect("keeps a remembered symlink alias stable for the entry lifetime", () =>
409412
Effect.gen(function* () {
410413
const root = yield* tmpdirScoped({ git: true })
411414
const target = join(root, "target")
@@ -437,7 +440,7 @@ describe("InstanceStore", () => {
437440
}),
438441
)
439442

440-
it.live("keeps waiting alias loads on the frozen key across tombstone cleanup", () =>
443+
symlinkLive("keeps waiting alias loads on the frozen key across tombstone cleanup", () =>
441444
Effect.gen(function* () {
442445
const root = yield* tmpdirScoped({ git: true })
443446
const canonical = join(root, "canonical")
@@ -489,7 +492,7 @@ describe("InstanceStore", () => {
489492
}),
490493
)
491494

492-
it.live("releases an interrupted alias reservation", () =>
495+
symlinkLive("releases an interrupted alias reservation", () =>
493496
Effect.gen(function* () {
494497
const root = yield* tmpdirScoped({ git: true })
495498
const canonical = join(root, "canonical")

0 commit comments

Comments
 (0)