Skip to content

Commit

Permalink
Enforces ordering of test output
Browse files Browse the repository at this point in the history
  • Loading branch information
liancheng committed Dec 10, 2014
1 parent 3bb8731 commit 800e745
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class ParquetFilterSuite extends QueryTest with ParquetTest {
case s: Seq[_] => s.map(_.asInstanceOf[Row].getAs[Array[Byte]](0).mkString(","))
case s => Seq(s.asInstanceOf[Array[Byte]].mkString(","))
}
assert(actual === expected)
assert(actual.sorted === expected.sorted)
}
checkFilterPushdown(rdd, output, predicate, filterClass, checkBinaryAnswer _, expectedResult)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ class ParquetIOSuite extends QueryTest with ParquetTest {
test("raw binary") {
val data = (1 to 4).map(i => Tuple1(Array.fill(3)(i.toByte)))
withParquetRDD(data) { rdd =>
assertResult(data.map(_._1.mkString(","))) {
rdd.collect().map(_.getAs[Array[Byte]](0).mkString(","))
assertResult(data.map(_._1.mkString(",")).sorted) {
rdd.collect().map(_.getAs[Array[Byte]](0).mkString(",")).sorted
}
}
}
Expand Down

0 comments on commit 800e745

Please sign in to comment.