Skip to content

Commit 906deaf

Browse files
committed
test(sandbox): finalize concurrent apply_patch regression
1 parent 7965ce7 commit 906deaf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/sandbox/test_apply_patch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ async def test_apply_patch_serializes_concurrent_operations() -> None:
487487
original_read = session.read
488488

489489
async def blocking_read(
490-
path: Path, *, user: str | None = None
490+
path: Path, *, user: object = None
491491
) -> io.BytesIO:
492492
if path == Path("/workspace/source-a.txt") and not entered.is_set():
493493
entered.set()
@@ -529,4 +529,4 @@ async def blocking_read(
529529
assert session.files[Path("/workspace/source-a.txt")] == b"a\n"
530530
assert session.files[Path("/workspace/source-b.txt")] == b"b\n"
531531
assert session.files[Path("/workspace/target-a.txt")] == b"occupied-a\n"
532-
assert session.files[Path("/workspace/target-b.txt")] == b"occupied-b\n"
532+
assert session.files[Path("/workspace/target-b.txt")] == b"occupied-b\n"

0 commit comments

Comments
 (0)