Added an after block to reset spark.broadcast.factory
This commit is contained in:
parent
90ab55fd37
commit
8612641362
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue