andreachild commented on code in PR #3237:
URL: https://github.com/apache/tinkerpop/pull/3237#discussion_r2421237749
##########
gremlin-util/src/test/java/org/apache/tinkerpop/gremlin/structure/io/Model.java:
##########
@@ -115,12 +116,22 @@ private Model() {
addCoreEntry(new java.sql.Timestamp(1481750076295L), "Timestamp", "");
addCoreEntry(UUID.fromString("41d2e28a-20a4-4ab0-b379-d810dede3786"),
"UUID");
- addGraphStructureEntry(graph.edges().next(), "Edge", "");
- addGraphStructureEntry(g.V().out().out().path().next(), "Path", "");
- addGraphStructureEntry(graph.edges().next().properties().next(),
"Property", "");
+ addGraphStructureEntry(IteratorUtils.list(graph.edges()).stream()
+ .sorted((e1, e2) -> Integer.compare((Integer)e1.id(),
(Integer)e2.id()))
+ .iterator().next(), "Edge", "");
+
addGraphStructureEntry(g.V().order().by(T.id).out().out().path().next(),
"Path", "");
+ addGraphStructureEntry(IteratorUtils.list(graph.edges()).stream()
+ .sorted((e1, e2) -> Integer.compare((Integer)e1.id(),
(Integer)e2.id()))
+ .iterator().next().properties().next(), "Property", "");
Review Comment:
Should the properties be sorted as well?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]