Merge pull request #120852 from bzsuni/cleanup/sets/scheduler

use generic Set in scheduler
This commit is contained in:
Kubernetes Prow Robot 2023-09-25 01:52:57 -07:00 committed by GitHub
commit c6bb90aeea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -598,7 +598,7 @@ func TestSchedulerGuaranteeNonNilNodeInSchedulingCycle(t *testing.T) {
go wait.Until(createPodsOneRound, 9*time.Millisecond, ctx.Done())
// 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++ {
allWaitSchedulingPods.Insert(fmt.Sprintf("pod%d", i))
}