aboutsummaryrefslogtreecommitdiff
path: root/repl/scala-2.10
diff options
context:
space:
mode:
authorPrashant Sharma <prashsh1@in.ibm.com>2016-06-09 17:45:37 -0700
committerShixiong Zhu <shixiong@databricks.com>2016-06-09 17:45:42 -0700
commit83070cd1d459101e1189f3b07ea59e22f98e84ce (patch)
treef195e2f110d04ca50bd358da512564393f04280e /repl/scala-2.10
parentaa0364510792c18a0973b6096cd38f611fc1c1a6 (diff)
downloadspark-83070cd1d459101e1189f3b07ea59e22f98e84ce.tar.gz
spark-83070cd1d459101e1189f3b07ea59e22f98e84ce.tar.bz2
spark-83070cd1d459101e1189f3b07ea59e22f98e84ce.zip
[SPARK-15841][Tests] REPLSuite has incorrect env set for a couple of tests.
Description from JIRA. In ReplSuite, for a test that can be tested well on just local should not really have to start a local-cluster. And similarly a test is in-sufficiently run if it's actually fixing a problem related to a distributed run in environment with local run. Existing tests. Author: Prashant Sharma <prashsh1@in.ibm.com> Closes #13574 from ScrapCodes/SPARK-15841/repl-suite-fix.
Diffstat (limited to 'repl/scala-2.10')
-rw-r--r--repl/scala-2.10/src/test/scala/org/apache/spark/repl/ReplSuite.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/repl/scala-2.10/src/test/scala/org/apache/spark/repl/ReplSuite.scala b/repl/scala-2.10/src/test/scala/org/apache/spark/repl/ReplSuite.scala
index 19f201f606..26b8600c32 100644
--- a/repl/scala-2.10/src/test/scala/org/apache/spark/repl/ReplSuite.scala
+++ b/repl/scala-2.10/src/test/scala/org/apache/spark/repl/ReplSuite.scala
@@ -233,7 +233,7 @@ class ReplSuite extends SparkFunSuite {
}
test("SPARK-1199 two instances of same class don't type check.") {
- val output = runInterpreter("local-cluster[1,1,1024]",
+ val output = runInterpreter("local",
"""
|case class Sum(exp: String, exp2: String)
|val a = Sum("A", "B")
@@ -305,7 +305,7 @@ class ReplSuite extends SparkFunSuite {
}
test("SPARK-2632 importing a method from non serializable class and not using it.") {
- val output = runInterpreter("local",
+ val output = runInterpreter("local-cluster[1,1,1024]",
"""
|class TestClass() { def testMethod = 3 }
|val t = new TestClass