@@ -937,7 +937,6 @@ func TestSchedulerNoPhantomPodAfterDelete(t *testing.T) {
937
937
node .Name : framework .NewStatus (framework .Unschedulable , nodeports .ErrReason ).WithPlugin (nodeports .Name ),
938
938
},
939
939
UnschedulablePlugins : sets .New (nodeports .Name ),
940
- EvaluatedNodes : 1 ,
941
940
},
942
941
}
943
942
if ! reflect .DeepEqual (expectErr , err ) {
@@ -1045,7 +1044,6 @@ func TestSchedulerFailedSchedulingReasons(t *testing.T) {
1045
1044
Diagnosis : framework.Diagnosis {
1046
1045
NodeToStatusMap : failedNodeStatues ,
1047
1046
UnschedulablePlugins : sets .New (noderesources .Name ),
1048
- EvaluatedNodes : 100 ,
1049
1047
},
1050
1048
}
1051
1049
if len (fmt .Sprint (expectErr )) > 150 {
@@ -1833,7 +1831,6 @@ func TestSchedulerSchedulePod(t *testing.T) {
1833
1831
"node2" : framework .NewStatus (framework .Unschedulable , tf .ErrReasonFake ).WithPlugin ("FalseFilter" ),
1834
1832
},
1835
1833
UnschedulablePlugins : sets .New ("FalseFilter" ),
1836
- EvaluatedNodes : 2 ,
1837
1834
},
1838
1835
},
1839
1836
},
@@ -1924,7 +1921,6 @@ func TestSchedulerSchedulePod(t *testing.T) {
1924
1921
"1" : framework .NewStatus (framework .Unschedulable , tf .ErrReasonFake ).WithPlugin ("FalseFilter" ),
1925
1922
},
1926
1923
UnschedulablePlugins : sets .New ("FalseFilter" ),
1927
- EvaluatedNodes : 3 ,
1928
1924
},
1929
1925
},
1930
1926
},
@@ -1951,7 +1947,6 @@ func TestSchedulerSchedulePod(t *testing.T) {
1951
1947
"2" : framework .NewStatus (framework .Unschedulable , tf .ErrReasonFake ).WithPlugin ("NoPodsFilter" ),
1952
1948
},
1953
1949
UnschedulablePlugins : sets .New ("MatchFilter" , "NoPodsFilter" ),
1954
- EvaluatedNodes : 2 ,
1955
1950
},
1956
1951
},
1957
1952
},
@@ -2117,7 +2112,6 @@ func TestSchedulerSchedulePod(t *testing.T) {
2117
2112
"3" : framework .NewStatus (framework .Unschedulable , "injecting failure for pod test-filter" ).WithPlugin ("FakeFilter" ),
2118
2113
},
2119
2114
UnschedulablePlugins : sets .New ("FakeFilter" ),
2120
- EvaluatedNodes : 1 ,
2121
2115
},
2122
2116
},
2123
2117
},
@@ -2151,7 +2145,6 @@ func TestSchedulerSchedulePod(t *testing.T) {
2151
2145
"3" : framework .NewStatus (framework .Unschedulable , "injecting failure for pod test-filter" ).WithPlugin ("FakeFilter" ),
2152
2146
},
2153
2147
UnschedulablePlugins : sets .New ("FakeFilter" , framework .ExtenderName ),
2154
- EvaluatedNodes : 3 ,
2155
2148
},
2156
2149
},
2157
2150
},
@@ -2177,7 +2170,6 @@ func TestSchedulerSchedulePod(t *testing.T) {
2177
2170
"3" : framework .NewStatus (framework .UnschedulableAndUnresolvable , "injecting failure for pod test-filter" ).WithPlugin ("FakeFilter" ),
2178
2171
},
2179
2172
UnschedulablePlugins : sets .New ("FakeFilter" ),
2180
- EvaluatedNodes : 1 ,
2181
2173
},
2182
2174
},
2183
2175
},
@@ -2256,9 +2248,10 @@ func TestSchedulerSchedulePod(t *testing.T) {
2256
2248
),
2257
2249
tf .RegisterBindPlugin (defaultbinder .Name , defaultbinder .New ),
2258
2250
},
2259
- nodes : []string {"node1" , "node2" , "node3" },
2260
- pod : st .MakePod ().Name ("test-prefilter" ).UID ("test-prefilter" ).Obj (),
2261
- wantNodes : sets .New ("node2" ),
2251
+ nodes : []string {"node1" , "node2" , "node3" },
2252
+ pod : st .MakePod ().Name ("test-prefilter" ).UID ("test-prefilter" ).Obj (),
2253
+ wantNodes : sets .New ("node2" ),
2254
+ // since this case has no score plugin, we'll only try to find one node in Filter stage
2262
2255
wantEvaluatedNodes : ptr.To [int32 ](1 ),
2263
2256
},
2264
2257
{
@@ -2347,7 +2340,6 @@ func TestSchedulerSchedulePod(t *testing.T) {
2347
2340
"node2" : framework .NewStatus (framework .Unschedulable , "injecting failure for pod test-prefilter" ).WithPlugin ("FakeFilter" ),
2348
2341
},
2349
2342
UnschedulablePlugins : sets .New ("FakeFilter" ),
2350
- EvaluatedNodes : 1 ,
2351
2343
PreFilterMsg : "" ,
2352
2344
},
2353
2345
},
@@ -2571,7 +2563,6 @@ func TestFindFitAllError(t *testing.T) {
2571
2563
"3" : framework .NewStatus (framework .Unschedulable , tf .ErrReasonFake ).WithPlugin ("MatchFilter" ),
2572
2564
},
2573
2565
UnschedulablePlugins : sets .New ("MatchFilter" ),
2574
- EvaluatedNodes : 3 ,
2575
2566
}
2576
2567
if diff := cmp .Diff (diagnosis , expected ); diff != "" {
2577
2568
t .Errorf ("Unexpected diagnosis: (-want, +got): %s" , diff )
0 commit comments