Skip to content
Closed
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 @@ -174,6 +174,10 @@ class DAGSchedulerSuite
dagEventProcessLoopTester = new DAGSchedulerEventProcessLoopTester(scheduler)
}

after {
scheduler.stop()
}

override def afterAll() {
super.afterAll()
}
Expand Down Expand Up @@ -261,8 +265,9 @@ class DAGSchedulerSuite
override def taskSucceeded(partition: Int, value: Any) = numResults += 1
override def jobFailed(exception: Exception) = throw exception
}
submit(new MyRDD(sc, 0, Nil), Array(), listener = fakeListener)
val jobId = submit(new MyRDD(sc, 0, Nil), Array(), listener = fakeListener)
assert(numResults === 0)
cancel(jobId)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to cancel it, or scheduler.stop() will trigger jobFailed and make this test fail.

}

test("run trivial job") {
Expand Down