Skip to content

Commit

Permalink
increase coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxuan Wang <[email protected]>
  • Loading branch information
wangxiaoxuan273 committed Jan 4, 2024
1 parent 04acfec commit 8b3b993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/oci/oci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, 0777); err != nil {
t.Fatal(err)
}
if err := os.WriteFile(path.Join(badPath, "whatever"), []byte("extra content"), 0444); err != nil {
Expand Down

0 comments on commit 8b3b993

Please sign in to comment.