Test both hashWorker cancellation checks on their own (closes #83) #88

Merged
clawbot merged 1 commits from issue-83-hashworker-cancel-tests into next 2026-10-04 16:01:37 +02:00
1 Commits
Author SHA1 Message Date
sneak 712a82e08b Test both hashWorker cancellation checks on their own (closes #83)
check / check (push) Waiting to run
TestHashWorkerDropsQueuedRuns now passes hashWorker a hash function
that records being called, so a worker that hashes a run after the
scan is cancelled fails the test every time instead of only when it
then chose to send its result.

TestHashWorkerAbandonsBlockedSend cancels the scan from inside the
hash function and leaves the result channel unread, so the worker can
only return through the cancellation case beside its send. The scan
tests could not show this, because stop drains results and frees a
parked worker anyway.

Model: opus-5-5
2026-10-04 13:47:53 +00:00