Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
47c2b947
Unverified
Commit
47c2b947
authored
Aug 28, 2024
by
Michael Yang
Committed by
GitHub
Aug 28, 2024
Browse files
Merge pull request #6546 from ollama/mxyng/fix-test
fix(test): do not clobber models directory
parents
5eb77bf9
e4d0a9c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
server/model_test.go
server/model_test.go
+2
-0
No files found.
server/model_test.go
View file @
47c2b947
...
...
@@ -139,6 +139,7 @@ The temperature in San Francisco, CA is 70°F and in Toronto, Canada is 20°C.`,
func
TestParseFromFileFromLayer
(
t
*
testing
.
T
)
{
tempModels
:=
t
.
TempDir
()
t
.
Setenv
(
"OLLAMA_MODELS"
,
tempModels
)
file
,
err
:=
os
.
CreateTemp
(
tempModels
,
""
)
if
err
!=
nil
{
...
...
@@ -189,6 +190,7 @@ func TestParseFromFileFromLayer(t *testing.T) {
func
TestParseLayerFromCopy
(
t
*
testing
.
T
)
{
tempModels
:=
t
.
TempDir
()
t
.
Setenv
(
"OLLAMA_MODELS"
,
tempModels
)
file2
,
err
:=
os
.
CreateTemp
(
tempModels
,
""
)
if
err
!=
nil
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment