Skip to content
Snippets Groups Projects
Commit f8544981 authored by Reynold Xin's avatar Reynold Xin
Browse files

Merge pull request #469 from ajtulloch/use-local-spark-context-in-tests-for-mllib

[MLlib] Use a LocalSparkContext trait in test suites

Replaces the 9 instances of

```scala
class XXXSuite extends FunSuite with BeforeAndAfterAll {
  @transient private var sc: SparkContext = _

  override def beforeAll() {
    sc = new SparkContext("local", "test")
  }

  override def afterAll() {
    sc.stop()
    System.clearProperty("spark.driver.port")
  }
```

with

```scala
class XXXSuite extends FunSuite with LocalSparkContext {
```
parents 77b986f6 3a067b4a
No related branches found
No related tags found
No related merge requests found
Showing
with 43 additions and 113 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment