Skip to content

Commit 5ee4e25

Browse files
author
Andrew Or
committed
Fix tests
1 parent eed3390 commit 5ee4e25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/test/scala/org/apache/spark/util/ClosureCleanerSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ class ClosureCleanerSuite extends FunSuite {
6767
test("should clean only closures") {
6868
withSpark(new SparkContext("local", "test")) { sc =>
6969
val rdd = sc.makeRDD(1 to 100)
70-
intercept[IllegalArgumentException] { sc.clean(1) }
70+
intercept[IllegalArgumentException] { sc.clean(new Integer(1)) }
7171
intercept[IllegalArgumentException] { sc.clean("not a closure") }
7272
intercept[IllegalArgumentException] { sc.clean(rdd) }
73-
sc.clean(() => 1)
73+
sc.clean(() => new Integer(1))
7474
sc.clean(() => "part of a closure")
7575
sc.clean(() => rdd)
7676
}

0 commit comments

Comments
 (0)