From 59003d387d399d6280a42b4c79eef18cfdbfe72b Mon Sep 17 00:00:00 2001 From: Stephen Haberman <stephen@exigencecorp.com> Date: Mon, 9 Sep 2013 11:45:03 -0500 Subject: [PATCH] Use a set since shuffle could change order. --- core/src/test/scala/org/apache/spark/rdd/RDDSuite.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 6096149b19..c1df5e151e 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") { -- GitLab