Skip to content

Commit

Permalink
filename check in "binary file input as byte array" test now ignores …
Browse files Browse the repository at this point in the history
…prefixes and suffixes which might get added by Hadoop
  • Loading branch information
kmader committed Oct 1, 2014
1 parent 4163e38 commit 0588737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/test/scala/org/apache/spark/FileSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class FileSuite extends FunSuite with LocalSparkContext {
val (infile: String, indata: PortableDataStream) = inRdd.first

// Try reading the output back as an object file
assert(infile === outFileName)
assert(outFileName.contains(infile)) // a prefix may get added
assert(indata.toArray === testOutput)
}

Expand Down

0 comments on commit 0588737

Please sign in to comment.