Skip to content

Commit

Permalink
test: fix files test
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed May 24, 2023
1 parent 66c3d27 commit a8c1674
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions files/files_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ contents:
err := dec.Decode(&config)
require.NoError(t, err)
require.Len(t, config.Contents, 3)
parsedContents, err := files.PrepareForPackager(config.Contents, 0o113, "", false)
parsedContents, err := files.PrepareForPackager(config.Contents, 0o133, "", false)
require.NoError(t, err)
for _, c := range parsedContents {
switch c.Source {
Expand All @@ -78,10 +78,10 @@ contents:
require.Equal(t, "-rw-r--r--", c.Mode().String())
case "testdata/deep-paths/nested1/nested2/a.txt":
require.Equal(t, "/bar/nested1/nested2/a.txt", c.Destination)
require.Equal(t, "-rw-rw-r--", c.Mode().String())
require.Equal(t, "-rw-r--r--", c.Mode().String())
case path:
require.Equal(t, "/foo/file.txt", c.Destination)
require.Equal(t, "-rw-rw-r--", c.Mode().String())
require.Equal(t, "-rw-r--r--", c.Mode().String())
}
}
}
Expand Down

0 comments on commit a8c1674

Please sign in to comment.