Skip to content

Commit d1029cd

Browse files
authored
Merge pull request #1260 from Vincent056/fix-remediation-autoapply-wait
CMP-4414: e2e actually wait for remediation to be applied in WaitForGenericRemediationToBeAutoApplied
2 parents f86698d + 4bfbec7 commit d1029cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tests/e2e/framework/common.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3214,9 +3214,9 @@ func (f *Framework) WaitForGenericRemediationToBeAutoApplied(remName, remNamespa
32143214
log.Printf("found remediation: %s\n", remName)
32153215
if rem.Status.ApplicationState == compv1alpha1.RemediationNotApplied || rem.Status.ApplicationState == compv1alpha1.RemediationPending {
32163216
log.Printf("retrying. remediation not yet applied. Remediation Name: %s, ApplicationState: %s\n", remName, rem.Status.ApplicationState)
3217+
return false, nil
32173218
}
3218-
// wait for the remediation to get applied
3219-
time.Sleep(5 * time.Second)
3219+
// the remediation has been applied; stop polling
32203220
return true, nil
32213221
})
32223222
if lastErr != nil {

0 commit comments

Comments
 (0)