mirror of
https://github.com/ollama/ollama.git
synced 2026-04-24 17:55:43 +02:00
close files
This commit is contained in:
@@ -682,6 +682,7 @@ func TestCreateVersion(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
bts := json.NewDecoder(f)
|
||||
var m Manifest
|
||||
@@ -725,6 +726,7 @@ func TestCreateVersion(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer f.Close()
|
||||
bts := json.NewDecoder(f)
|
||||
|
||||
var m Manifest
|
||||
|
||||
Reference in New Issue
Block a user