Skip to content

Commit 1d60202

Browse files
authored
address nil,nil return linter error in test mock (#598)
Signed-off-by: Etai Lev Ran <elevran@gmail.com>
1 parent f8315f2 commit 1d60202

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/plugins/profile/pd_profile_handler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func newMockSchedulerProfile() scheduling.SchedulerProfile {
216216
type mockSchedulerProfile struct{}
217217

218218
func (p *mockSchedulerProfile) Run(_ context.Context, _ *scheduling.LLMRequest, _ *scheduling.CycleState, _ []scheduling.Endpoint) (*scheduling.ProfileRunResult, error) {
219-
return nil, nil
219+
return &scheduling.ProfileRunResult{}, nil
220220
}
221221

222222
func TestPdProfileHandler_Pick(t *testing.T) {

0 commit comments

Comments
 (0)