From f3c56a5b68847d82e6b19c381707a0dc777a70a9 Mon Sep 17 00:00:00 2001 From: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> Date: Wed, 20 Nov 2024 10:32:08 -0500 Subject: [PATCH] test: fix flaky test (#20847) Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> --- cmd/argocd/commands/app.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/argocd/commands/app.go b/cmd/argocd/commands/app.go index 6f517cde2920e..88c8c117f7c83 100644 --- a/cmd/argocd/commands/app.go +++ b/cmd/argocd/commands/app.go @@ -1738,6 +1738,9 @@ func formatConditionsSummary(app argoappv1.Application) string { } summary := "" if len(items) > 0 { + sort.Slice(items, func(i, j int) bool { + return items[i] < items[j] + }) summary = strings.Join(items, ",") } return summary