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:47:55 +00:00
parent 8032ea682b
commit f536c44042
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)
- test that `scan` refuses a database with another schema version
(2026-10-04, https://git.eeqj.de/sneak/sfdupes/issues/64)