Skip to content

Commit b42eeab

Browse files
committed
increase test parallelism
1 parent 80453d5 commit b42eeab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sql/core/src/main/scala/org/apache/spark/sql/test/TestSQLContext.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import org.apache.spark.sql.{SQLConf, SQLContext}
2222

2323
/** A SQLContext that can be used for local testing. */
2424
object TestSQLContext
25-
extends SQLContext(new SparkContext("local", "TestSQLContext", new SparkConf())) {
25+
extends SQLContext(new SparkContext("local[2]", "TestSQLContext", new SparkConf())) {
2626

2727
/** Fewer partitions to speed up testing. */
2828
override private[spark] def numShufflePartitions: Int =

sql/hive/src/main/scala/org/apache/spark/sql/hive/TestHive.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import org.apache.spark.sql.SQLConf
4141
import scala.collection.JavaConversions._
4242

4343
object TestHive
44-
extends TestHiveContext(new SparkContext("local", "TestSQLContext", new SparkConf()))
44+
extends TestHiveContext(new SparkContext("local[2]", "TestSQLContext", new SparkConf()))
4545

4646
/**
4747
* A locally running test instance of Spark's Hive execution engine.

0 commit comments

Comments
 (0)