mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 11:38:15 +00:00
use generic Set in scheduler
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
This commit is contained in:
parent
c5cf0ac188
commit
b71d7f9305
@ -598,7 +598,7 @@ func TestSchedulerGuaranteeNonNilNodeInSchedulingCycle(t *testing.T) {
|
|||||||
go wait.Until(createPodsOneRound, 9*time.Millisecond, ctx.Done())
|
go wait.Until(createPodsOneRound, 9*time.Millisecond, ctx.Done())
|
||||||
|
|
||||||
// Capture the events to wait all pods to be scheduled at least once.
|
// Capture the events to wait all pods to be scheduled at least once.
|
||||||
allWaitSchedulingPods := sets.NewString()
|
allWaitSchedulingPods := sets.New[string]()
|
||||||
for i := 0; i < waitSchedulingPodNumber; i++ {
|
for i := 0; i < waitSchedulingPodNumber; i++ {
|
||||||
allWaitSchedulingPods.Insert(fmt.Sprintf("pod%d", i))
|
allWaitSchedulingPods.Insert(fmt.Sprintf("pod%d", i))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user