File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
core/src/test/scala/org/apache/spark/scheduler Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -573,10 +573,8 @@ class TaskSetManagerSuite extends FunSuite with LocalSparkContext with Logging {
573573
574574 assert(manager.resourceOffer(" execA" , " host1" , PROCESS_LOCAL ).get.index === 0 )
575575 assert(manager.resourceOffer(" execA" , " host1" , NODE_LOCAL ) == None )
576- assert(manager.resourceOffer(" execA" , " host1" , NO_PREF ) == None )
577- clock.advance(LOCALITY_WAIT )
578- // schedule a node local task
579- assert(manager.resourceOffer(" execA" , " host1" , NODE_LOCAL ).get.index === 1 )
576+ assert(manager.resourceOffer(" execA" , " host1" , NO_PREF ).get.index == 1 )
577+
580578 manager.speculatableTasks += 1
581579 clock.advance(LOCALITY_WAIT )
582580 // schedule the nonPref task
You can’t perform that action at this time.
0 commit comments