Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the IT module depends on the tests module #4374

Merged
merged 3 commits into from
Dec 20, 2021
Merged
Changes from 1 commit
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 @@ -17,12 +17,12 @@
package com.nvidia.spark.rapids.tests.mortgage

import com.nvidia.spark.rapids.ShimLoader
import org.scalatest.FunSuite
import org.scalatest.{BeforeAndAfterAll, FunSuite}

import org.apache.spark.sql.SparkSession
import org.apache.spark.sql.functions._

class MortgageSparkSuite extends FunSuite {
class MortgageSparkSuite extends FunSuite with BeforeAndAfterAll {

/**
* This is intentionally a def rather than a val so that scalatest uses the correct value (from
Expand Down Expand Up @@ -63,6 +63,10 @@ class MortgageSparkSuite extends FunSuite {
builder.getOrCreate()
}

override def afterAll() = {
res-life marked this conversation as resolved.
Show resolved Hide resolved
session.close()
}

test("extract mortgage data") {
val df = Run.csv(
session,
Expand Down Expand Up @@ -120,3 +124,4 @@ class MortgageSparkSuite extends FunSuite {
assert(df.count() === 177)
}
}