Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ class TaskSchedulerImplSuite extends SparkFunSuite with LocalSparkContext with B
}

override def afterEach(): Unit = {
super.afterEach()
if (taskScheduler != null) {
taskScheduler.stop()
taskScheduler = null
Expand All @@ -71,6 +70,7 @@ class TaskSchedulerImplSuite extends SparkFunSuite with LocalSparkContext with B
dagScheduler.stop()
dagScheduler = null
}
super.afterEach()
}

def setupScheduler(confs: (String, String)*): TaskSchedulerImpl = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ class TaskSetManagerSuite extends SparkFunSuite with LocalSparkContext with Logg
}

override def afterEach(): Unit = {
super.afterEach()
if (sched != null) {
sched.dagScheduler.stop()
sched.stop()
sched = null
}
super.afterEach()
}


Expand Down