Skip to content

Commit

Permalink
[issue-438] Knative trigger validation in E2E test randomly fails (ap…
Browse files Browse the repository at this point in the history
  • Loading branch information
jianrongzhang89 authored and rgdoliveira committed Oct 24, 2024
1 parent 090f0dd commit 5a221c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/e2e/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,10 @@ func verifyTrigger(triggers []operatorapi.SonataFlowPlatformTriggerRef, namePref
GinkgoWriter.Println("Triggers from platform status:", triggers)
for _, ref := range triggers {
if strings.HasPrefix(ref.Name, namePrefix) && ref.Namespace == ns {
return verifyTriggerData(ref.Name, ns, path, broker)
EventuallyWithOffset(1, func() error {
return verifyTriggerData(ref.Name, ns, path, broker)
}, 2*time.Minute, 5).Should(Succeed())
return nil
}
}
return fmt.Errorf("failed to find trigger to verify with prefix: %v, namespace: %v", namePrefix, ns)
Expand Down

0 comments on commit 5a221c5

Please sign in to comment.