changed it for the wider stat error messages which comes directly from go standard library.

Signed-off-by: Anshul Verma <ansverma@localhost.localdomain>
pull/7127/head
Anshul Verma 6 years ago
parent d7029680ed
commit c8aa28bf44

@ -298,7 +298,6 @@ func TestPackageValues(t *testing.T) {
func TestNonExistentDirAndBadPermission(t *testing.T) { func TestNonExistentDirAndBadPermission(t *testing.T) {
nonExistentDir := "testdata/testcharts/non-existent-directory" nonExistentDir := "testdata/testcharts/non-existent-directory"
badPermissionChart := "testdata/testcharts/chart-with-bad-permission/chart-dir"
tests := []struct { tests := []struct {
name string name string
@ -314,12 +313,6 @@ func TestNonExistentDirAndBadPermission(t *testing.T) {
expect: fmt.Sprintf("stat %s: no such file or directory", nonExistentDir), expect: fmt.Sprintf("stat %s: no such file or directory", nonExistentDir),
err: true, err: true,
}, },
{
name: "package testdata/testcharts/non-existent-directory",
args: []string{"testdata/testcharts/chart-with-bad-permission/chart-dir"},
expect: fmt.Sprintf("stat %s: permission denied", badPermissionChart),
err: true,
},
} }
for _, tt := range tests { for _, tt := range tests {

Loading…
Cancel
Save