Skip to content

Commit

Permalink
Use ResetSystemProperties in SparkListenerSuite
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshRosen committed Dec 19, 2014
1 parent 0995c4b commit 5b3cb54
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ import org.scalatest.Matchers

import org.apache.spark.{LocalSparkContext, SparkContext}
import org.apache.spark.executor.TaskMetrics
import org.apache.spark.util.ResetSystemProperties

class SparkListenerSuite extends FunSuite with LocalSparkContext with Matchers
with BeforeAndAfter with BeforeAndAfterAll {
class SparkListenerSuite extends FunSuite with ResetSystemProperties with LocalSparkContext
with Matchers with BeforeAndAfter with BeforeAndAfterAll {

/** Length of time to wait while draining listener events. */
val WAIT_TIMEOUT_MILLIS = 10000
Expand All @@ -37,10 +38,6 @@ class SparkListenerSuite extends FunSuite with LocalSparkContext with Matchers
sc = new SparkContext("local", "SparkListenerSuite")
}

override def afterAll() {
System.clearProperty("spark.akka.frameSize")
}

test("basic creation and shutdown of LiveListenerBus") {
val counter = new BasicJobCounter
val bus = new LiveListenerBus
Expand Down

0 comments on commit 5b3cb54

Please sign in to comment.