Files
ngit-grasp/tests
DanConwayDev 834569b4dd test(grasp06): run staging maintenance in streaming cleanup fixture
The standalone receive-pack streaming test expected synchronous directory
removal and omitted the server's maintenance worker. Deferred staging cleanup
therefore left the fixture waiting forever even though the production server
starts that worker.

Start the real worker with the handler's lock map and wait with a bounded
deadline for empty-view removal. Also assert that the staging registry is
empty. The fake Git writes no objects, so let its repack and prune commands
complete as no-ops. Preserve the assertion that receive-pack streams progress
while the repository remains available and the subprocess is still running.
This changes test infrastructure only, not production cleanup or timeouts.

Validation: all four streaming tests and the full ngit-grasp suite pass
(3621 tests); formatting and diff checks pass. CI on the production parent
identified the original immediate-removal assertion as its failing test.

Assisted-by: GPT-6
2026-09-30 15:54:25 +00:00
..