@@ -2808,9 +2808,7 @@ func TestPermitPlugins(t *testing.T) {
2808
2808
profile := config.KubeSchedulerProfile {Plugins : configPlugins }
2809
2809
ctx , cancel := context .WithCancel (context .Background ())
2810
2810
defer cancel ()
2811
- f , err := newFrameworkWithQueueSortAndBind (ctx , registry , profile ,
2812
- WithWaitingPods (NewWaitingPodsMap ()),
2813
- )
2811
+ f , err := newFrameworkWithQueueSortAndBind (ctx , registry , profile )
2814
2812
if err != nil {
2815
2813
t .Fatalf ("fail to create framework: %s" , err )
2816
2814
}
@@ -2992,10 +2990,7 @@ func TestRecordingMetrics(t *testing.T) {
2992
2990
SchedulerName : testProfileName ,
2993
2991
Plugins : plugins ,
2994
2992
}
2995
- f , err := newFrameworkWithQueueSortAndBind (ctx , r , profile ,
2996
- withMetricsRecorder (recorder ),
2997
- WithWaitingPods (NewWaitingPodsMap ()),
2998
- )
2993
+ f , err := newFrameworkWithQueueSortAndBind (ctx , r , profile , withMetricsRecorder (recorder ))
2999
2994
if err != nil {
3000
2995
cancel ()
3001
2996
t .Fatalf ("Failed to create framework for testing: %v" , err )
@@ -3165,9 +3160,7 @@ func TestPermitWaitDurationMetric(t *testing.T) {
3165
3160
profile := config.KubeSchedulerProfile {Plugins : plugins }
3166
3161
ctx , cancel := context .WithCancel (context .Background ())
3167
3162
defer cancel ()
3168
- f , err := newFrameworkWithQueueSortAndBind (ctx , r , profile ,
3169
- WithWaitingPods (NewWaitingPodsMap ()),
3170
- )
3163
+ f , err := newFrameworkWithQueueSortAndBind (ctx , r , profile )
3171
3164
if err != nil {
3172
3165
t .Fatalf ("Failed to create framework for testing: %v" , err )
3173
3166
}
@@ -3223,9 +3216,7 @@ func TestWaitOnPermit(t *testing.T) {
3223
3216
profile := config.KubeSchedulerProfile {Plugins : plugins }
3224
3217
ctx , cancel := context .WithCancel (context .Background ())
3225
3218
defer cancel ()
3226
- f , err := newFrameworkWithQueueSortAndBind (ctx , r , profile ,
3227
- WithWaitingPods (NewWaitingPodsMap ()),
3228
- )
3219
+ f , err := newFrameworkWithQueueSortAndBind (ctx , r , profile )
3229
3220
if err != nil {
3230
3221
t .Fatalf ("Failed to create framework for testing: %v" , err )
3231
3222
}
0 commit comments