Skip to content

Commit

Permalink
engine: fix flaky TestCancelBuild (#5486)
Browse files Browse the repository at this point in the history
  • Loading branch information
landism authored Feb 11, 2022
1 parent 8f363ec commit dbe18da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/engine/buildcontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ func (c *BuildController) cleanUpCanceledBuilds(st store.RStore) {
defer st.RUnlockState()

for _, ms := range state.ManifestStates() {
if ms.CurrentBuild.Empty() {
continue
}
disabled := ms.DisableState == v1alpha1.DisableStateDisabled
canceled := false
if cancelButton, ok := state.UIButtons[uibutton.CancelButtonName(ms.Name.String())]; ok {
Expand Down

0 comments on commit dbe18da

Please sign in to comment.