Added an after block to reset spark.broadcast.factory

This commit is contained in:
Mosharaf Chowdhury 2013-10-17 22:44:04 -07:00
parent 90ab55fd37
commit 8612641362

View file

@ -21,6 +21,10 @@ import org.scalatest.FunSuite
class BroadcastSuite extends FunSuite with LocalSparkContext {
after {
System.clearProperty("spark.broadcast.factory")
}
test("Using HttpBroadcast locally") {
System.setProperty("spark.broadcast.factory", "org.apache.spark.broadcast.HttpBroadcastFactory")
sc = new SparkContext("local", "test")