Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,17 @@ import org.apache.spark.{HashPartitioner, SparkConf, SparkContext, SparkFunSuite

class TrackStateRDDSuite extends SparkFunSuite with BeforeAndAfterAll {

private var sc = new SparkContext(
new SparkConf().setMaster("local").setAppName("TrackStateRDDSuite"))
private var sc: SparkContext = null

override def beforeAll(): Unit = {
sc = new SparkContext(
new SparkConf().setMaster("local").setAppName("TrackStateRDDSuite"))
}

override def afterAll(): Unit = {
sc.stop()
if (sc != null) {
sc.stop()
}
}

test("creation from pair RDD") {
Expand Down