Skip to content

Commit

Permalink
scheduler: fix UT Fail cause map iterate
Browse files Browse the repository at this point in the history
Signed-off-by: wangjianyu.wjy <[email protected]>
  • Loading branch information
wangjianyu.wjy committed Jan 3, 2025
1 parent 0b71d81 commit f9e8486
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/scheduler/frameworkext/topologymanager/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package topologymanager

import (
"fmt"
"sort"
"strings"

"k8s.io/klog/v2"
Expand Down Expand Up @@ -175,6 +176,9 @@ func filterProvidersHints(providersHints []map[string][]NUMATopologyHint) ([][]N
allProviderHints = append(allProviderHints, hints[resource])
}
}
sort.Slice(summary, func(i, j int) bool {
return summary[i] < summary[j]
})
return allProviderHints, reasons, summary
}

Expand Down

0 comments on commit f9e8486

Please sign in to comment.