Move envconfig and consolidate env vars (#4608)

This commit is contained in:
Patrick Devine 2024-05-24 14:57:15 -07:00 committed by GitHub
parent afd2b058b4
commit 4cc3be3035
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 81 additions and 51 deletions

View file

@ -209,14 +209,14 @@ func Test_Routes(t *testing.T) {
},
}
t.Setenv("OLLAMA_MODELS", t.TempDir())
s := &Server{}
router := s.GenerateRoutes()
httpSrv := httptest.NewServer(router)
t.Cleanup(httpSrv.Close)
t.Setenv("OLLAMA_MODELS", t.TempDir())
for _, tc := range testCases {
t.Run(tc.Name, func(t *testing.T) {
u := httpSrv.URL + tc.Path