Files
opencloud/services/webdav/pkg/thumbnail/cache
Pascal Bleser 41196f511e test(webdav): fix a data race in the thumbnail cache test
The test "should use atomic write via temp file + rename" set
sawTempFile in a watcher goroutine and read it after close(done),
without waiting for the goroutine to stop, so the race detector failed
TestCache.

Make sawTempFile an atomic.Bool and wait for the watcher to return
before reading it.

Fixes #4010

Assisted-by: Claude Code:claude-opus-5-5
2026-11-16 12:38:00 +01:00
..