@@ -38,7 +38,7 @@ func TestReadOnlyStorage_Exists(t *testing.T) {
3838 dgst := digest .FromBytes (blob )
3939 desc := content .NewDescriptorFromBytes ("" , blob )
4040 fsys := fstest.MapFS {
41- strings .Join ([]string {"blobs" , dgst .Algorithm ().String (), dgst .Encoded ()}, "/" ): {},
41+ strings .Join ([]string {ociBlobsDir , dgst .Algorithm ().String (), dgst .Encoded ()}, "/" ): {},
4242 }
4343 s := NewStorageFromFS (fsys )
4444 ctx := context .Background ()
@@ -76,7 +76,7 @@ func TestReadOnlyStorage_Fetch(t *testing.T) {
7676 dgst := digest .FromBytes (blob )
7777 desc := content .NewDescriptorFromBytes ("" , blob )
7878 fsys := fstest.MapFS {
79- strings .Join ([]string {"blobs" , dgst .Algorithm ().String (), dgst .Encoded ()}, "/" ): {
79+ strings .Join ([]string {ociBlobsDir , dgst .Algorithm ().String (), dgst .Encoded ()}, "/" ): {
8080 Data : blob ,
8181 },
8282 }
@@ -123,7 +123,7 @@ func TestReadOnlyStorage_DirFS(t *testing.T) {
123123 dgst := digest .FromBytes (blob )
124124 desc := content .NewDescriptorFromBytes ("test" , blob )
125125 // write blob to disk
126- path := filepath .Join (tempDir , "blobs" , dgst .Algorithm ().String (), dgst .Encoded ())
126+ path := filepath .Join (tempDir , ociBlobsDir , dgst .Algorithm ().String (), dgst .Encoded ())
127127 if err := os .MkdirAll (filepath .Dir (path ), 0777 ); err != nil {
128128 t .Fatal ("error calling Mkdir(), error =" , err )
129129 }
0 commit comments