Merge pull request #107419 from sanposhiho/non-need-e2e-queue-move

Delete non-need `AddUnschedulableIfNotPresent` calling in `TestCoreResourceEnqueue`
This commit is contained in:
Kubernetes Prow Robot 2022-05-24 17:06:43 -07:00 committed by GitHub
commit e1d92980e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,10 +105,6 @@ func TestCoreResourceEnqueue(t *testing.T) {
t.Fatalf("Expect Pod %v to fail at scheduling.", podInfo.Pod.Name)
}
testCtx.Scheduler.Error(podInfo, fitError)
// Scheduling cycle is incremented by one after NextPod() is called, so
// pass a number larger than i to move Pod to unschedulablePods.
testCtx.Scheduler.SchedulingQueue.AddUnschedulableIfNotPresent(podInfo, int64(i+10))
}
// Trigger a NodeTaintChange event.