mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 23:15:14 +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",
|
PluginName: "FakePreemptionScorePostFilter",
|
||||||
Handler: fwk,
|
Handler: fwk,
|
||||||
Interface: fakePreemptionScorePostFilterPlugin,
|
Interface: fakePreemptionScorePostFilterPlugin,
|
||||||
State: framework.NewCycleState(),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
status := pe.prepareCandidate(ctx, tt.candidate, tt.preemptor, "test-plugin")
|
status := pe.prepareCandidate(ctx, tt.candidate, tt.preemptor, "test-plugin")
|
||||||
@ -810,7 +809,6 @@ func TestCallExtenders(t *testing.T) {
|
|||||||
PluginName: "FakePreemptionScorePostFilter",
|
PluginName: "FakePreemptionScorePostFilter",
|
||||||
Handler: fwk,
|
Handler: fwk,
|
||||||
Interface: fakePreemptionScorePostFilterPlugin,
|
Interface: fakePreemptionScorePostFilterPlugin,
|
||||||
State: framework.NewCycleState(),
|
|
||||||
}
|
}
|
||||||
gotCandidates, status := pe.callExtenders(logger, preemptor, tt.candidates)
|
gotCandidates, status := pe.callExtenders(logger, preemptor, tt.candidates)
|
||||||
if (tt.wantStatus == nil) != (status == nil) || status.Code() != tt.wantStatus.Code() {
|
if (tt.wantStatus == nil) != (status == nil) || status.Code() != tt.wantStatus.Code() {
|
||||||
|
Loading…
Reference in New Issue
Block a user