3d5a011a2e
* app: harden update flows This hardens the windows update flows and adds a new opt-in and CI triggered unit test to verify Mac/Windows updates with verification. * test: harden unit tests for OLLAMA_MODELS being set * app: harden updater
16 lines
256 B
Go
16 lines
256 B
Go
package server
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/ollama/ollama/envconfig"
|
|
)
|
|
|
|
func setTestHome(t *testing.T, home string) {
|
|
t.Helper()
|
|
t.Setenv("HOME", home)
|
|
t.Setenv("USERPROFILE", home)
|
|
t.Setenv("OLLAMA_MODELS", "")
|
|
envconfig.ReloadServerConfig()
|
|
}
|