Test both walk cancellation checks on their own (closes #81)
check / check (push) Failing after 1s

walkOneDir's check was hiding the worker's: a worker that walked a
queued directory on a cancelled scan still emitted nothing, because
walkOneDir stopped at its first entry. The worker test now queues a
missing directory, whose read fails and sends a warning before
walkOneDir's check is reached. A new test calls walkOneDir directly on
a cancelled scan and checks it returns no subdirectory to descend into.

Model: opus-5-5
This commit is contained in:
2026-10-04 11:16:25 +00:00
parent 948fb03630
commit 1a004e8dbb
2 changed files with 40 additions and 8 deletions
+3
View File
@@ -29,6 +29,9 @@
# Completed Steps
- a test fails when either walk cancellation check in `scan.go` is
removed (2026-10-04, https://git.eeqj.de/sneak/sfdupes/issues/81)
- correct four inaccurate comments in `cancel_test.go` and rename
`walkCancelInFlightDirs` to `walkCancelInFlightFiles` (2026-10-04,
https://git.eeqj.de/sneak/sfdupes/issues/33)