Skip to content

Commit

Permalink
Use sets when comparing collect() results
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshRosen committed Oct 21, 2014
1 parent 91276a3 commit c23897a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/test/scala/org/apache/spark/rdd/RDDSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ class RDDSuite extends FunSuite with SharedSparkContext {

test("collect large number of empty partitions") {
// Regression test for SPARK-4019
assert(sc.makeRDD(0 until 10, 1000).repartition(2001).collect() === (0 until 10))
assert(sc.makeRDD(0 until 10, 1000).repartition(2001).collect().toSet === (0 until 10).toSet)
}

test("take") {
Expand Down

0 comments on commit c23897a

Please sign in to comment.