diff --git a/core/src/test/scala/org/apache/spark/rdd/RDDSuite.scala b/core/src/test/scala/org/apache/spark/rdd/RDDSuite.scala index 6096149b19d724aa7a99faa424438cf247c57d26..c1df5e151e8acca7073a50209cfa4b5460795262 100644 --- a/core/src/test/scala/org/apache/spark/rdd/RDDSuite.scala +++ b/core/src/test/scala/org/apache/spark/rdd/RDDSuite.scala @@ -179,7 +179,7 @@ class RDDSuite extends FunSuite with SharedSparkContext { // when shuffling, we can increase the number of partitions val coalesced6 = data.coalesce(20, shuffle = true) assert(coalesced6.partitions.size === 20) - assert(coalesced6.collect().toList === (1 to 10).toList) + assert(coalesced6.collect().toSet === (1 to 10).toSet) } test("coalesced RDDs with locality") {