fix: fixed some tests

This commit is contained in:
Kensei Nakada 2024-10-30 18:21:09 +09:00
parent e40f3f40bd
commit 68aeced18e

View File

@ -555,7 +555,6 @@ func TestPrepareCandidate(t *testing.T) {
PluginName: "FakePreemptionScorePostFilter",
Handler: fwk,
Interface: fakePreemptionScorePostFilterPlugin,
State: framework.NewCycleState(),
}
status := pe.prepareCandidate(ctx, tt.candidate, tt.preemptor, "test-plugin")
@ -810,7 +809,6 @@ func TestCallExtenders(t *testing.T) {
PluginName: "FakePreemptionScorePostFilter",
Handler: fwk,
Interface: fakePreemptionScorePostFilterPlugin,
State: framework.NewCycleState(),
}
gotCandidates, status := pe.callExtenders(logger, preemptor, tt.candidates)
if (tt.wantStatus == nil) != (status == nil) || status.Code() != tt.wantStatus.Code() {