refactor test

This commit is contained in:
Josh Yan 2024-07-29 14:57:37 -07:00
parent e5f03af4d3
commit 3cd1c9baa9

View File

@ -647,10 +647,11 @@ func TestCreateVersion(t *testing.T) {
})
f, err := os.Open(filepath.Join(p, "manifests", "registry.ollama.ai", "library", "test", "latest"))
defer f.Close()
if err != nil {
t.Fatal(err)
}
defer f.Close()
bts := json.NewDecoder(f)
var m Manifest