ollama/app/updater
Daniel Hiltgen b63eed94b6
app/updater: drain background update-check goroutine before returning (#17446)
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.
2026-07-31 10:42:40 -07:00
..
updater.go app/updater: drain background update-check goroutine before returning (#17446) 2026-07-31 10:42:40 -07:00
updater_darwin.go app: harden update flows (#16100) 2026-05-11 12:24:01 -07:00
updater_darwin.h app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
updater_darwin.m app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
updater_darwin_test.go app: harden update flows (#16100) 2026-05-11 12:24:01 -07:00
updater_live_test.go app: harden update flows (#16100) 2026-05-11 12:24:01 -07:00
updater_test.go app/updater: drain background update-check goroutine before returning (#17446) 2026-07-31 10:42:40 -07:00
updater_windows.go app: harden update flows (#16100) 2026-05-11 12:24:01 -07:00
updater_windows_test.go app: harden update flows (#16100) 2026-05-11 12:24:01 -07:00