spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pwend...@apache.org
Subject [37/50] git commit: Use a set since shuffle could change order.
Date Tue, 10 Sep 2013 19:40:51 GMT
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/heads/branch-0.8
Commit: 59003d387d399d6280a42b4c79eef18cfdbfe72b
Parents: 6471bfe
Author: Stephen Haberman <stephen@exigencecorp.com>
Authored: Mon Sep 9 11:45:03 2013 -0500
Committer: Stephen Haberman <stephen@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") {


Mime
View raw message