8000 More comments · randomf/spark-testing-base@599aaff · GitHub
[go: up one dir, main page]

Skip to content

Commit 599aaff

Browse files
committed
More comments
1 parent 583bdf3 commit 599aaff

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/2.0/scala/com/holdenkarau/spark/testing/SharedSparkContext.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ import org.scalatest.{BeforeAndAfterAll, Suite}
2424

2525
/**
2626
* Shares a local `SparkContext` between all tests in a suite
27-
* and closes it at the end.
27+
* and closes it at the end. You can share between suites by enabling
28+
* reuseContextIfPossible.
2829
*/
2930
trait SharedSparkContext extends BeforeAndAfterAll with SparkContextProvider {
3031
self: Suite =>
@@ -36,8 +37,8 @@ trait SharedSparkContext extends BeforeAndAfterAll with SparkContextProvider {
3637
protected implicit def reuseContextIfPossible: Boolean = false
3738

3839
override def beforeAll() {
39-
// This is kind of a hack, but if we've got an existing Spark Context hanging around
40-
// we need to kill it.
40+
// This is kind of a hack, but if we've got an existing Spark Context
41+
// hanging around we need to kill it.
4142
if (!reuseContextIfPossible) {
4243
EvilSparkContext.stopActiveSparkContext()
4344
}

0 commit comments

Comments
 (0)
0