Florian Hockmann created TINKERPOP-2189:
-------------------------------------------
Summary: ConnectedComponent test assumes fixed order of vertices
Key: TINKERPOP-2189
URL: https://issues.apache.org/jira/browse/TINKERPOP-2189
Project: TinkerPop
Issue Type: Bug
Components: test-suite
Affects Versions: 3.4.1
Reporter: Florian Hockmann
The test
{{g_V_hasLabelXsoftwareX_connectedComponent_project_byXnameX_byXcomponentX}}
checks that the two vertices {{lop}} and {{ripple}} are in the same component.
It does that [by asserting that these vertices have the
id|https://github.com/apache/tinkerpop/blob/6a705098b5176086c667b94fa9e13aa2f122bb59/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/ConnectedComponentTest.java#L76]
of the {{marko}} vertex as their component.
The id used for the component is [simply the id of the vertex on which the
program is executed
first|https://github.com/apache/tinkerpop/blob/667134d608ca29828457cd3eebe365ee1fd330ce/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/computer/clustering/connected/ConnectedComponentVertexProgram.java#L122].
So, the test fails if the program is executed first for another vertex even if
the connected component is created correctly.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)