Merge pull request #126158 from macsko/use_generics_in_scheduling_queue_heap

Use generics in scheduling queue's heap
This commit is contained in:
Kubernetes Prow Robot
2024-08-13 21:03:02 -07:00
committed by GitHub
7 changed files with 277 additions and 410 deletions

View File

@@ -314,13 +314,7 @@ func TestCoreResourceEnqueue(t *testing.T) {
newPod = oldPod.DeepCopy()
newPod.Status.Conditions[0].Message = "injected message"
if err := testCtx.Scheduler.SchedulingQueue.Update(
klog.FromContext(testCtx.Ctx),
oldPod,
newPod,
); err != nil {
return fmt.Errorf("failed to update the pod: %w", err)
}
testCtx.Scheduler.SchedulingQueue.Update(klog.FromContext(testCtx.Ctx), oldPod, newPod)
return nil
},
wantRequeuedPods: sets.Set[string]{},