From 84cebbfd143e84d89bc4fba48461874e0e998ad0 Mon Sep 17 00:00:00 2001 From: wangjianyu Date: Fri, 3 Jan 2025 12:05:32 +0800 Subject: [PATCH] scheduler: fix UT Fail cause map iterate (#2311) Signed-off-by: wangjianyu.wjy Co-authored-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 }