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
64a9cc8f
Unverified
Commit
64a9cc8f
authored
Apr 14, 2025
by
CYJiang
Committed by
GitHub
Apr 14, 2025
Browse files
cmd: add missing file close in tests (#10179)
parent
f50d6912
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
cmd/cmd_test.go
cmd/cmd_test.go
+1
-0
No files found.
cmd/cmd_test.go
View file @
64a9cc8f
...
@@ -415,6 +415,7 @@ func TestGetModelfileName(t *testing.T) {
...
@@ -415,6 +415,7 @@ func TestGetModelfileName(t *testing.T) {
if
err
!=
nil
{
if
err
!=
nil
{
t
.
Fatalf
(
"temp modelfile creation failed: %v"
,
err
)
t
.
Fatalf
(
"temp modelfile creation failed: %v"
,
err
)
}
}
defer
tempFile
.
Close
()
expectedFilename
=
tempFile
.
Name
()
expectedFilename
=
tempFile
.
Name
()
err
=
cmd
.
Flags
()
.
Set
(
"file"
,
expectedFilename
)
err
=
cmd
.
Flags
()
.
Set
(
"file"
,
expectedFilename
)
...
...
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