fixed dependency_update_test.go

Signed-off-by: Suleiman Dibirov <idsulik@gmail.com>
(cherry picked from commit 4d25dd3d8e)
release-3.15
Suleiman Dibirov 7 months ago committed by Matt Farina
parent f262d80d30
commit f440d3b19e
No known key found for this signature in database
GPG Key ID: 92C44A3D421FF7F9

@ -200,8 +200,9 @@ func TestDependencyUpdateCmd_DoNotDeleteOldChartsOnError(t *testing.T) {
}
}
// Make sure tmpcharts is deleted
if _, err := os.Stat(filepath.Join(dir(chartname), "tmpcharts")); !os.IsNotExist(err) {
// Make sure tmpcharts-x is deleted
tmpPath := filepath.Join(dir(chartname), fmt.Sprintf("tmpcharts-%d", os.Getpid()))
if _, err := os.Stat(tmpPath); !os.IsNotExist(err) {
t.Fatalf("tmpcharts dir still exists")
}
}

Loading…
Cancel
Save