Skip to content

Commit 868d9eb

Browse files
committed
Don't create SparkContext in JobProgressListenerSuite.
This reduces the time of the test from 11 seconds to 20 milliseconds.
1 parent ee6e9e7 commit 868d9eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/test/scala/org/apache/spark/ui/jobs/JobProgressListenerSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ class JobProgressListenerSuite extends FunSuite with LocalSparkContext with Shou
5555
}
5656

5757
test("test executor id to summary") {
58-
val sc = new SparkContext("local", "test")
59-
val listener = new JobProgressListener(sc.conf)
58+
val conf = new SparkConf()
59+
val listener = new JobProgressListener(conf)
6060
val taskMetrics = new TaskMetrics()
6161
val shuffleReadMetrics = new ShuffleReadMetrics()
6262

0 commit comments

Comments
 (0)