beliefer opened a new pull request #29754:
URL: https://github.com/apache/spark/pull/29754
### What changes were proposed in this pull request?
TaskSchedulerImplSuite always check the results show below:
```
val zeroCoreWorkerOffers = IndexedSeq(new WorkerOffer("executor0",
"host0", 0),
new WorkerOffer("executor1", "host1", 0))
val taskSet = FakeTask.createTaskSet(1)
taskScheduler.submitTasks(taskSet)
var taskDescriptions =
taskScheduler.resourceOffers(zeroCoreWorkerOffers).flatten
assert(0 === taskDescriptions.length)
```
We can extract it as a generic method.
### Why are the changes needed?
Extract a generic method.
### Does this PR introduce _any_ user-facing change?
'No'.
### How was this patch tested?
Jenkins test
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]