unroll extenders
Signed-off-by: Jerry Ge <jerry.ge@arm.com> Co-authored-by: Huang-Wei <wei.huang1@ibm.com>
This commit is contained in:
@@ -137,7 +137,7 @@ func TestServiceAffinityEnqueue(t *testing.T) {
|
||||
t.Fatalf("Cannot find the profile for Pod %v", podInfo.Pod.Name)
|
||||
}
|
||||
// Schedule the Pod manually.
|
||||
_, fitError := testCtx.Scheduler.Algorithm.Schedule(ctx, fwk, framework.NewCycleState(), podInfo.Pod)
|
||||
_, fitError := testCtx.Scheduler.Algorithm.Schedule(ctx, nil, fwk, framework.NewCycleState(), podInfo.Pod)
|
||||
// The fitError is expected to be:
|
||||
// 0/2 nodes are available: 1 Too many pods, 1 node(s) didn't match service affinity.
|
||||
if fitError == nil {
|
||||
@@ -301,7 +301,7 @@ func TestCustomResourceEnqueue(t *testing.T) {
|
||||
t.Fatalf("Cannot find the profile for Pod %v", podInfo.Pod.Name)
|
||||
}
|
||||
// Schedule the Pod manually.
|
||||
_, fitError := testCtx.Scheduler.Algorithm.Schedule(ctx, fwk, framework.NewCycleState(), podInfo.Pod)
|
||||
_, fitError := testCtx.Scheduler.Algorithm.Schedule(ctx, nil, fwk, framework.NewCycleState(), podInfo.Pod)
|
||||
// The fitError is expected to be non-nil as it failed the fakeCRPlugin plugin.
|
||||
if fitError == nil {
|
||||
t.Fatalf("Expect Pod %v to fail at scheduling.", podInfo.Pod.Name)
|
||||
|
Reference in New Issue
Block a user