Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix envconfig unit test #4331

Merged
merged 1 commit into from May 11, 2024
Merged

Fix envconfig unit test #4331

merged 1 commit into from May 11, 2024

Conversation

dhiltgen
Copy link
Collaborator

No description provided.

@mxyng
Copy link
Contributor

mxyng commented May 10, 2024

There are a few other places where os.Setenv is being used in tests:

server/envconfig/config_test.go|11 col 2| os.Setenv("OLLAMA_DEBUG", "")
server/envconfig/config_test.go|14 col 2| os.Setenv("OLLAMA_DEBUG", "false")
server/envconfig/config_test.go|17 col 2| os.Setenv("OLLAMA_DEBUG", "1")
server/sched_test.go|24 col 2| os.Setenv("OLLAMA_DEBUG", "1")
integration/max_queue_test.go|31 col 3| os.Setenv("OLLAMA_MAX_QUEUE", fmt.Sprintf("%d", threadCount))
integration/basic_test.go|52 col 9| defer os.Setenv("OLLAMA_MODELS", oldModelsDir)
integration/basic_test.go|54 col 8| err = os.Setenv("OLLAMA_MODELS", modelDir)

@dhiltgen dhiltgen merged commit c60a086 into ollama:main May 11, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants