Skip to content

Commit b351406

Browse files
committed
Add assert check
1 parent e2d4e07 commit b351406

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/test/scala/org/apache/spark/input/WholeTextFileInputFormatSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ class WholeTextFileInputFormatSuite extends SparkFunSuite with BeforeAndAfterAll
7070
WholeTextFileInputFormatSuite.files.foreach { case (filename, contents) =>
7171
createNativeFile(dir, filename, contents, false)
7272
}
73-
74-
val res = sc.wholeTextFiles(dir.toString).count
73+
// ensure spark job runs successfully without exceptions from the CombineFileInputFormat
74+
assert(sc.wholeTextFiles(dir.toString).count == 1)
7575
} finally {
7676
Utils.deleteRecursively(dir)
7777
}

0 commit comments

Comments
 (0)