mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-24 14:04:07 +00:00
Merge pull request #126158 from macsko/use_generics_in_scheduling_queue_heap
Use generics in scheduling queue's heap
This commit is contained in:
@@ -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]{},
|
||||
|
||||
Reference in New Issue
Block a user