aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Haberman <stephen@exigencecorp.com>2013-09-09 11:45:03 -0500
committerStephen Haberman <stephen@exigencecorp.com>2013-09-09 11:45:03 -0500
commit59003d387d399d6280a42b4c79eef18cfdbfe72b (patch)
treeeeb0ef89eb188d04b31d2dcfb95c4f5ef244a41c
parent6471bfec736b033a94a96575255f2d4453082709 (diff)
downloadspark-59003d387d399d6280a42b4c79eef18cfdbfe72b.tar.gz
spark-59003d387d399d6280a42b4c79eef18cfdbfe72b.tar.bz2
spark-59003d387d399d6280a42b4c79eef18cfdbfe72b.zip
Use a set since shuffle could change order.
-rw-r--r--core/src/test/scala/org/apache/spark/rdd/RDDSuite.scala2
1 files changed, 1 insertions, 1 deletions
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") {