Github user andralungu commented on a diff in the pull request:

    https://github.com/apache/flink/pull/1000#discussion_r36779494
  
    --- Diff: 
flink-staging/flink-gelly/src/test/java/org/apache/flink/graph/test/GatherSumApplyITCase.java
 ---
    @@ -86,26 +72,35 @@ public void testConnectedComponents() throws Exception {
     
        @Test
        public void testSingleSourceShortestPaths() throws Exception {
    -           GSASingleSourceShortestPaths.main(new String[]{"1", edgesPath, 
resultPath, "16"});
    -           expectedResult = "1 0.0\n" +
    -                           "2 12.0\n" +
    -                           "3 13.0\n" +
    -                           "4 47.0\n" +
    -                           "5 48.0\n" +
    -                           "6 Infinity\n" +
    -                           "7 Infinity\n";
    +           final ExecutionEnvironment env = 
ExecutionEnvironment.getExecutionEnvironment();
    +
    +           Graph<Long, Double, Double> inputGraph = Graph.fromDataSet(
    +                           
SingleSourceShortestPathsData.getDefaultEdgeDataSet(env),
    +                           new InitMapperSSSP(), env);
    +
    +        List<Vertex<Long, Double>> result = inputGraph.run(new 
GSASingleSourceShortestPaths<Long>(1l, 16))
    +                   .getVertices().collect();
    --- End diff --
    
    Is there a specific reason for which we decided to use `collect()` in the 
tests? It does not seem to be a consistency issue. The other tests (in flink) 
are still using  `compareResultsByLinesInMemory()`. Do we gain anything?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to