Merge pull request #90660 from Huang-Wei/synced-sched-err-call
Move unschedulable Pod to internal schedulingQ synchronously
This commit is contained in:
@@ -1394,7 +1394,7 @@ func TestFilterPlugin(t *testing.T) {
|
||||
}
|
||||
|
||||
// Create the master and the scheduler with the test plugin set.
|
||||
testCtx := initTestSchedulerForFrameworkTest(t, testutils.InitTestMaster(t, "filter-plugin", nil), 2,
|
||||
testCtx := initTestSchedulerForFrameworkTest(t, testutils.InitTestMaster(t, "filter-plugin", nil), 1,
|
||||
scheduler.WithProfiles(prof),
|
||||
scheduler.WithFrameworkOutOfTreeRegistry(registry))
|
||||
defer testutils.CleanupTest(t, testCtx)
|
||||
@@ -1418,8 +1418,8 @@ func TestFilterPlugin(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
if filterPlugin.numFilterCalled == 0 {
|
||||
t.Errorf("Expected the filter plugin to be called.")
|
||||
if filterPlugin.numFilterCalled != 1 {
|
||||
t.Errorf("Expected the filter plugin to be called 1 time, but got %v.", filterPlugin.numFilterCalled)
|
||||
}
|
||||
|
||||
filterPlugin.reset()
|
||||
|
Reference in New Issue
Block a user