Fix layout tests on macos (#384)

This commit is contained in:
Jason Hall
2021-07-15 10:16:24 -04:00
committed by GitHub
parent 8295e25f7d
commit 56282bf645
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ func TestLayout(t *testing.T) {
}
importpath := "github.com/Google/go-containerregistry/cmd/crane"
tmp, err := ioutil.TempDir("", "ko")
tmp, err := ioutil.TempDir("/tmp", "ko")
if err != nil {
t.Fatal(err)
}
+1 -1
View File
@@ -42,7 +42,7 @@ func TestMulti(t *testing.T) {
tp := NewTarball(fp.Name(), repoName, md5Hash, []string{})
tmp, err := ioutil.TempDir("", "ko")
tmp, err := ioutil.TempDir("/tmp", "ko")
if err != nil {
t.Fatal(err)
}