diff --git a/pkg/scheduler/schedule_one_test.go b/pkg/scheduler/schedule_one_test.go index 45aa2f9d8c7..bce0284a366 100644 --- a/pkg/scheduler/schedule_one_test.go +++ b/pkg/scheduler/schedule_one_test.go @@ -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)) }