Skip to content

Commit

Permalink
Fixes #82
Browse files Browse the repository at this point in the history
  • Loading branch information
TebaleloS committed Mar 16, 2023
1 parent 6c04072 commit cb93a03
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,13 @@ class OncePerSparkSessionTest extends AnyFunSuite with MockitoSugar with SparkTe
assert(UdfLibrary.libraryAInitCounter == 1)
}

test("should return false if the library is registered successfully and false if provided that spark session has started") {
test("should return false for both results if provided that spark session has started") {
/*
* It returns false because the constructor will actually register the library before the call for the register
* method on line 77.
* Up for discussion though.
*/

var libraryAInitCounter = 0
val anotherSpark: SparkSession = mock[SparkSession]
class UDFLibrary()(implicit sparkToRegisterTo: SparkSession) extends OncePerSparkSession(sparkToRegisterTo) {
Expand Down

0 comments on commit cb93a03

Please sign in to comment.