Skip to content

Commit

Permalink
sched: Address review
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Nov 29, 2022
1 parent 5a458a6 commit 2fd7550
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions storage/sealer/sched_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -589,12 +589,16 @@ func TestSched(t *testing.T) {
type slowishSelector bool

func (s slowishSelector) Ok(ctx context.Context, task sealtasks.TaskType, spt abi.RegisteredSealProof, a SchedWorker) (bool, bool, error) {
// note: we don't care about output here, just the time those calls take
// (selector Ok/Cmp is called in the scheduler)
_, _ = a.Paths(ctx)
_, _ = a.TaskTypes(ctx)
return bool(s), false, nil
}

func (s slowishSelector) Cmp(ctx context.Context, task sealtasks.TaskType, a, b SchedWorker) (bool, error) {
// note: we don't care about output here, just the time those calls take
// (selector Ok/Cmp is called in the scheduler)
_, _ = a.Paths(ctx)
return true, nil
}
Expand Down

0 comments on commit 2fd7550

Please sign in to comment.