Skip to content

Commit

Permalink
Fix the unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
zsxwing committed Dec 9, 2014
1 parent 64853af commit 39343de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ShortestPathsSuite extends FunSuite with LocalSparkContext {
val graph = Graph.fromEdgeTuples(edges, 1)
val landmarks = Seq(1, 4).map(_.toLong)
val results = ShortestPaths.run(graph, landmarks).vertices.collect.map {
case (v, spMap) => (v, spMap.mapValues(_.get))
case (v, spMap) => (v, spMap.mapValues(i => i))
}
assert(results.toSet === shortestPaths)
}
Expand Down

0 comments on commit 39343de

Please sign in to comment.