diff options
author | Reynold Xin <rxin@apache.org> | 2014-01-21 10:49:54 -0800 |
---|---|---|
committer | Reynold Xin <rxin@apache.org> | 2014-01-21 10:49:54 -0800 |
commit | f8544981a6d05687fa950639cb1eb3c31e9b6bf5 (patch) | |
tree | fbbf11345a19ae2a5d6c52b57c98466feb75981a /docs/configuration.md | |
parent | 77b986f6616e6f7e0be9e46bb355829686f9845b (diff) | |
parent | 3a067b4a76e6363f0668b5be82ab088d6a1f79d2 (diff) | |
download | spark-f8544981a6d05687fa950639cb1eb3c31e9b6bf5.tar.gz spark-f8544981a6d05687fa950639cb1eb3c31e9b6bf5.tar.bz2 spark-f8544981a6d05687fa950639cb1eb3c31e9b6bf5.zip |
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 {
```
Diffstat (limited to 'docs/configuration.md')
0 files changed, 0 insertions, 0 deletions