Skip to content

Commit

Permalink
Fix flaky TestReconcileKind/Consumers_in_multiple_pods,_with_pods_pen…
Browse files Browse the repository at this point in the history
…ding_and_unknown_phase (#3250)

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
  • Loading branch information
pierDipi authored Jul 31, 2023
1 parent 8a0ffa2 commit 0a737de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions control-plane/pkg/reconciler/consumergroup/consumergroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,8 @@ func (r Reconciler) ensureContractConfigmapsExist(ctx context.Context, scheduler
return fmt.Errorf("failed to list statefulset pods with selector %v: %w", selector.String(), err)
}

sort.Slice(pods, func(i, j int) bool { return pods[i].Name < pods[j].Name })

for _, p := range pods {
cmName, err := eventing.ConfigMapNameFromPod(p)
if err != nil {
Expand Down

0 comments on commit 0a737de

Please sign in to comment.