Skip to content

Commit d7f1ffa

Browse files
author
Marcelo Vanzin
committed
Fix ReplSuite.
1 parent d01d9ba commit d7f1ffa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

repl/scala-2.11/src/test/scala/org/apache/spark/repl/ReplSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ class ReplSuite extends SparkFunSuite {
4848
val oldExecutorClasspath = System.getProperty(CONF_EXECUTOR_CLASSPATH)
4949
System.setProperty(CONF_EXECUTOR_CLASSPATH, classpath)
5050

51-
System.setProperty("spark.master", master)
52-
Main.doMain(Array("-classpath", classpath), new SparkILoop(in, new PrintWriter(out)))
51+
Main.conf.set("spark.master", master)
52+
Main.doMain(Array("-classpath", classpath), new SparkILoop(in, new PrintWriter(out)))
5353

5454
if (oldExecutorClasspath != null) {
5555
System.setProperty(CONF_EXECUTOR_CLASSPATH, oldExecutorClasspath)

0 commit comments

Comments
 (0)