You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by pw...@apache.org on 2013/09/10 21:32:41 UTC

[36/50] git commit: Use a set since shuffle could change order.

Use a set since shuffle could change order.


Project: http://git-wip-us.apache.org/repos/asf/incubator-spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spark/commit/59003d38
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spark/tree/59003d38
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spark/diff/59003d38

Branch: refs/remotes/origin/branch-0.8
Commit: 59003d387d399d6280a42b4c79eef18cfdbfe72b
Parents: 6471bfe
Author: Stephen Haberman <st...@exigencecorp.com>
Authored: Mon Sep 9 11:45:03 2013 -0500
Committer: Stephen Haberman <st...@exigencecorp.com>
Committed: Mon Sep 9 11:45:03 2013 -0500

----------------------------------------------------------------------
 core/src/test/scala/org/apache/spark/rdd/RDDSuite.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/59003d38/core/src/test/scala/org/apache/spark/rdd/RDDSuite.scala
----------------------------------------------------------------------
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 6096149..c1df5e1 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") {