mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
fix: fixed some tests
This commit is contained in:
parent
e40f3f40bd
commit
68aeced18e
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user