Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Lixia (Sylvia) Lei <lixlei@microsoft.com>
  • Loading branch information
Wwwsylvia committed Jan 14, 2025
1 parent 73c0aee commit 71789a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/file/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func Test_extractTarDirectory(t *testing.T) {
wantErr bool
}{
{
name: "valid files",
name: "valid files should be exracted",
tarData: createTar(t, []tarEntry{
{name: "base/", mode: os.ModeDir | 0777},
{name: "base/test.txt", content: "hello world", mode: 0666},
Expand All @@ -266,11 +266,11 @@ func Test_extractTarDirectory(t *testing.T) {
wantErr: false,
},
{
name: "non-regular files",
name: "non-regular files should be skipped",
tarData: createTar(t, []tarEntry{
{name: "something", isNonRegular: true},
{name: "base/something", isNonRegular: true},
}),
wantErr: true,
wantErr: false,
},
{
name: "invalid tar header",
Expand Down

0 comments on commit 71789a0

Please sign in to comment.