Skip to content

Commit

Permalink
scheduler: fix ReservationPreScore UTs
Browse files Browse the repository at this point in the history
Signed-off-by: saintube <saintube@foxmail.com>
  • Loading branch information
saintube authored and saintube committed Aug 29, 2024
1 parent 0d0150a commit 7f664ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/scheduler/plugins/reservation/scoring_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,9 @@ func TestPreScoreWithNominateReservation(t *testing.T) {
}
cycleState.Write(stateKey, state)

// the usage of the lister requires the informers started
suit.start()

status := pl.PreScore(context.TODO(), cycleState, tt.pod, nodes)
assert.Equal(t, tt.wantStatus, status.IsSuccess())

Expand Down

0 comments on commit 7f664ec

Please sign in to comment.