mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
cmd: add missing file close in tests (#10179)
This commit is contained in:
parent
f50d691254
commit
64a9cc8f05
1 changed files with 1 additions and 0 deletions
|
@ -415,6 +415,7 @@ func TestGetModelfileName(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Fatalf("temp modelfile creation failed: %v", err)
|
||||
}
|
||||
defer tempFile.Close()
|
||||
|
||||
expectedFilename = tempFile.Name()
|
||||
err = cmd.Flags().Set("file", expectedFilename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue