mirror of
https://github.com/ollama/ollama.git
synced 2026-09-21 22:04:25 +00:00
DownloadNewRelease spawned a background checkForUpdate loop that read package-level knobs (UpdateCheckInterval et al.) and returned without waiting for it, so under -race the next test rewrote those globals while the orphaned goroutine was still reading them. waitDownloadIdle (from Cancel and WaitGroup-drain the loop before DownloadNewRelease returns, and have TestCancelOngoingDownload join its download goroutine so the drain is observable before the test exits. |
||
|---|---|---|
| .. | ||
| updater.go | ||
| updater_darwin.go | ||
| updater_darwin.h | ||
| updater_darwin.m | ||
| updater_darwin_test.go | ||
| updater_live_test.go | ||
| updater_test.go | ||
| updater_windows.go | ||
| updater_windows_test.go | ||