beliefer commented on a change in pull request #29754:
URL: https://github.com/apache/spark/pull/29754#discussion_r492519743



##########
File path: 
core/src/test/scala/org/apache/spark/scheduler/TaskSchedulerImplSuite.scala
##########
@@ -1911,11 +1912,12 @@ class TaskSchedulerImplSuite extends SparkFunSuite with 
LocalSparkContext with B
     clock.advance(2000)
 
     // Now give it some resources and both tasks should be rerun
-    val taskDescriptions = taskScheduler.resourceOffers(IndexedSeq(
-      WorkerOffer("executor2", "host2", 1), WorkerOffer("executor3", "host3", 
1))).flatten
-    assert(taskDescriptions.size === 2)
-    assert(taskDescriptions.map(_.index).sorted == Seq(0, 1))
-    assert(manager.copiesRunning.take(2) === Array(1, 1))
+    submitTasksAndCheck(IndexedSeq(WorkerOffer("executor2", "host2", 1),
+      WorkerOffer("executor3", "host3", 1)), Seq.empty) { taskDescriptions =>

Review comment:
       OK. Let's not change this matter.




----------------------------------------------------------------
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]

Reply via email to