fix tests

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero 2026-03-19 18:03:41 +08:00
parent 2edc0c6240
commit 56b4332fbb
2 changed files with 2 additions and 6 deletions

View File

@ -132,7 +132,7 @@ func (r *Run) withPreparedCharts(helmfileCommand string, opts state.ChartPrepare
firstErr = nonNilErrs[0]
}
_, err = r.state.TriggerGlobalCleanupEventWithError(helmfileCommand, firstErr)
_, err = r.state.TriggerGlobalCleanupEvent(helmfileCommand, firstErr)
return err
}

View File

@ -3105,11 +3105,7 @@ func (st *HelmState) TriggerGlobalPrepareEvent(helmfileCommand string) (bool, er
return st.triggerGlobalReleaseEvent("prepare", nil, helmfileCommand)
}
func (st *HelmState) TriggerGlobalCleanupEvent(helmfileCommand string) (bool, error) {
return st.TriggerGlobalCleanupEventWithError(helmfileCommand, nil)
}
func (st *HelmState) TriggerGlobalCleanupEventWithError(helmfileCommand string, evtErr error) (bool, error) {
func (st *HelmState) TriggerGlobalCleanupEvent(helmfileCommand string, evtErr error) (bool, error) {
return st.triggerGlobalReleaseEvent("cleanup", evtErr, helmfileCommand)
}