Skip to content

Commit 4d25dd3

Browse files
committed
fixed dependency_update_test.go
Signed-off-by: Suleiman Dibirov <[email protected]>
1 parent adeb4ca commit 4d25dd3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmd/helm/dependency_update_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,9 @@ func TestDependencyUpdateCmd_DoNotDeleteOldChartsOnError(t *testing.T) {
200200
}
201201
}
202202

203-
// Make sure tmpcharts is deleted
204-
if _, err := os.Stat(filepath.Join(dir(chartname), "tmpcharts")); !os.IsNotExist(err) {
203+
// Make sure tmpcharts-x is deleted
204+
tmpPath := filepath.Join(dir(chartname), fmt.Sprintf("tmpcharts-%d", os.Getpid()))
205+
if _, err := os.Stat(tmpPath); !os.IsNotExist(err) {
205206
t.Fatalf("tmpcharts dir still exists")
206207
}
207208
}

0 commit comments

Comments
 (0)