Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

app: isolate cloud-setting tests from Windows user config (#18626)

Devon Rifkin5f4b01e638db
diff --git a/app/ui/ui_test.go b/app/ui/ui_test.go
index ee9cab14d..29736f11b 100644
--- a/app/ui/ui_test.go
+++ b/app/ui/ui_test.go
@@ -199,6 +199,7 @@ func TestGetIntegrationStatuses(t *testing.T) {
func TestHandlePostApiCloudSetting(t *testing.T) {
tmpHome := t.TempDir()
t.Setenv("HOME", tmpHome)
+ t.Setenv("USERPROFILE", tmpHome) // os.UserHomeDir uses USERPROFILE on Windows.
t.Setenv("OLLAMA_NO_CLOUD", "")
testStore := &store.Store{
@@ -260,6 +261,7 @@ func TestHandlePostApiCloudSetting(t *testing.T) {
func TestHandleGetApiCloudSetting(t *testing.T) {
tmpHome := t.TempDir()
t.Setenv("HOME", tmpHome)
+ t.Setenv("USERPROFILE", tmpHome) // os.UserHomeDir uses USERPROFILE on Windows.
t.Setenv("OLLAMA_NO_CLOUD", "")
testStore := &store.Store{