Skip to content

Commit 594f632

Browse files
committed
fix(tests): use isolated paths for remote branch test
Move remote.git and second_clone directories under git_repo instead of git_repo.parent to prevent path collisions with parallel test workers. Assisted-By: 🤖 Claude Code
1 parent 8d4710d commit 594f632

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_timestamp_branches.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,8 @@ def test_dry_run_accounts_for_remote_branches(self, git_repo: Path):
514514
"""Dry-run queries remote refs via ls-remote (no fetch) for accurate numbering."""
515515
(git_repo / "specs" / "001-existing").mkdir(parents=True)
516516

517-
# Set up a bare remote and push
518-
remote_dir = git_repo.parent / "remote.git"
517+
# Set up a bare remote and push (use subdirs of git_repo for isolation)
518+
remote_dir = git_repo / "test-remote.git"
519519
subprocess.run(
520520
["git", "init", "--bare", str(remote_dir)],
521521
check=True, capture_output=True,
@@ -530,7 +530,7 @@ def test_dry_run_accounts_for_remote_branches(self, git_repo: Path):
530530
)
531531

532532
# Clone into a second copy, create a higher-numbered branch, push it
533-
second_clone = git_repo.parent / "second_clone"
533+
second_clone = git_repo / "test-second-clone"
534534
subprocess.run(
535535
["git", "clone", str(remote_dir), str(second_clone)],
536536
check=True, capture_output=True,

0 commit comments

Comments
 (0)