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
e4d0a9c3
"server/vscode:/vscode.git/clone" did not exist on "aefde28b45cad8c2e93f91f690ecc60eee7bd75c"
Commit
e4d0a9c3
authored
Aug 28, 2024
by
Michael Yang
Browse files
fix(test): do not clobber models directory
parent
7416ced7
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 @
e4d0a9c3
...
...
@@ -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