Skip to content

Commit

Permalink
invalid layer path
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Abro <[email protected]>
  • Loading branch information
AustinAbro321 committed Dec 20, 2024
1 parent 453987a commit 43a1531
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/internal/packager/images/pull_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ func TestPullWithInvalidLayerInCache(t *testing.T) {
cacheDir := t.TempDir()
require.NoError(t, err)
layerContent := []byte("this text here is not the valid layer that the image is looking for")
err = os.WriteFile(filepath.Join(cacheDir, "sha256:94c7366c1c3058fbc60a5ea04b6d13199a592a67939a043c41c051c4bfcd117a"), layerContent, 0600)
invalidLayerPath := filepath.Join(cacheDir, "sha256:94c7366c1c3058fbc60a5ea04b6d13199a592a67939a043c41c051c4bfcd117a")
err = os.WriteFile(invalidLayerPath, layerContent, 0777)
require.NoError(t, err)

pullConfig := PullConfig{
Expand Down

This file was deleted.

0 comments on commit 43a1531

Please sign in to comment.