From 70d476575b23f4b4d10559ce3a03eef553c626d5 Mon Sep 17 00:00:00 2001 From: "wangjianyu.wjy" Date: Fri, 3 Jan 2025 11:53:43 +0800 Subject: [PATCH] scheduler: fix UT Fail cause map iterate Signed-off-by: wangjianyu.wjy --- pkg/scheduler/frameworkext/topologymanager/policy.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/scheduler/frameworkext/topologymanager/policy.go b/pkg/scheduler/frameworkext/topologymanager/policy.go index 4734c117a..7d8eebbc6 100644 --- a/pkg/scheduler/frameworkext/topologymanager/policy.go +++ b/pkg/scheduler/frameworkext/topologymanager/policy.go @@ -19,6 +19,7 @@ package topologymanager import ( "fmt" + "sort" "strings" "k8s.io/klog/v2" @@ -175,6 +176,7 @@ func filterProvidersHints(providersHints []map[string][]NUMATopologyHint) ([][]N allProviderHints = append(allProviderHints, hints[resource]) } } + sort.Strings(summary) return allProviderHints, reasons, summary }