Skip to content

Commit 575aa5c

Browse files
committed
test(sandbox): use posix sandbox paths in metadata assertions
1 parent ba196ca commit 575aa5c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/sandbox/test_entries.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ async def test_dir_metadata_strips_file_type_bits_before_chmod() -> None:
679679

680680
await Dir()._apply_metadata(session, dest)
681681

682-
assert ("chmod", "0755", str(dest)) in session.exec_calls
682+
assert ("chmod", "0755", "/workspace/dir") in session.exec_calls
683683

684684

685685
@pytest.mark.asyncio
@@ -710,5 +710,5 @@ async def test_apply_manifest_raises_on_chgrp_failure() -> None:
710710
with pytest.raises(ExecNonZeroError):
711711
await session.apply_manifest()
712712

713-
assert ("chgrp", "sandbox-user", str(Path("/workspace/copied.txt"))) in session.exec_calls
713+
assert ("chgrp", "sandbox-user", "/workspace/copied.txt") in session.exec_calls
714714
assert not any(call[0] == "chmod" for call in session.exec_calls)

0 commit comments

Comments
 (0)