From bf6e962d280c0fa1f311ba3f0ab2500e8de2e009 Mon Sep 17 00:00:00 2001 From: Xiaoxuan Wang Date: Thu, 4 Jan 2024 17:01:40 +0800 Subject: [PATCH] increase coverage Signed-off-by: Xiaoxuan Wang --- content/oci/oci_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/oci/oci_test.go b/content/oci/oci_test.go index 8ce2ba576..64fe75f5a 100644 --- a/content/oci/oci_test.go +++ b/content/oci/oci_test.go @@ -3033,7 +3033,7 @@ func TestStore_GCErrorPath(t *testing.T) { // test os.Remove() error badDigest := digest.FromBytes([]byte("bad digest")).Encoded() badPath := path.Join(algPath, "sha256", badDigest) - if err := os.Mkdir(badPath, 0444); err != nil { + if err := os.Mkdir(badPath, 0666); err != nil { t.Fatal(err) } if err := os.WriteFile(path.Join(badPath, "whatever"), []byte("extra content"), 0444); err != nil {