mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-11-26 10:07:34 -05:00
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