Skip to content

Commit

Permalink
Don't create SparkContext in JobProgressListenerSuite.
Browse files Browse the repository at this point in the history
This reduces the time of the test from 11 seconds to 20 milliseconds.
  • Loading branch information
pwendell committed Apr 4, 2014
1 parent ee6e9e7 commit 868d9eb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ class JobProgressListenerSuite extends FunSuite with LocalSparkContext with Shou
}

test("test executor id to summary") {
val sc = new SparkContext("local", "test")
val listener = new JobProgressListener(sc.conf)
val conf = new SparkConf()
val listener = new JobProgressListener(conf)
val taskMetrics = new TaskMetrics()
val shuffleReadMetrics = new ShuffleReadMetrics()

Expand Down

0 comments on commit 868d9eb

Please sign in to comment.