Skip to content

Commit 6c6be93

Browse files
committed
revert unit test
1 parent 9a8ec13 commit 6c6be93

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

pkg/scheduler/internal/queue/scheduling_queue_test.go

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ import (
4444
"k8s.io/kubernetes/pkg/features"
4545
"k8s.io/kubernetes/pkg/scheduler/framework"
4646
"k8s.io/kubernetes/pkg/scheduler/framework/plugins/queuesort"
47-
"k8s.io/kubernetes/pkg/scheduler/framework/plugins/schedulinggates"
4847
"k8s.io/kubernetes/pkg/scheduler/metrics"
4948
st "k8s.io/kubernetes/pkg/scheduler/testing"
5049
"k8s.io/kubernetes/pkg/scheduler/util"
@@ -3743,30 +3742,3 @@ func Test_isPodWorthRequeuing(t *testing.T) {
37433742
})
37443743
}
37453744
}
3746-
3747-
func Test_queuedPodInfo_gatedSetUponCreationAndUnsetUponUpdate(t *testing.T) {
3748-
logger, ctx := ktesting.NewTestContext(t)
3749-
plugin, _ := schedulinggates.New(ctx, nil, nil)
3750-
m := map[string][]framework.PreEnqueuePlugin{"": {plugin.(framework.PreEnqueuePlugin)}}
3751-
q := NewTestQueue(ctx, newDefaultQueueSort(), WithPreEnqueuePluginMap(m))
3752-
3753-
gatedPod := st.MakePod().SchedulingGates([]string{"hello world"}).Obj()
3754-
if err := q.Add(logger, gatedPod); err != nil {
3755-
t.Error("Error calling Add")
3756-
}
3757-
3758-
if !q.unschedulablePods.get(gatedPod).Gated {
3759-
t.Error("expected pod to be gated")
3760-
}
3761-
3762-
ungatedPod := gatedPod.DeepCopy()
3763-
ungatedPod.Spec.SchedulingGates = nil
3764-
if err := q.Update(logger, gatedPod, ungatedPod); err != nil {
3765-
t.Error("Error calling Update")
3766-
}
3767-
3768-
ungatedPodInfo, _ := q.Pop(logger)
3769-
if ungatedPodInfo.Gated {
3770-
t.Error("expected pod to be ungated")
3771-
}
3772-
}

0 commit comments

Comments
 (0)