Skip to content

Commit 9f3d0e0

Browse files
committed
Attempt to un-flake test by ordering result rows
1 parent 4f8b7ee commit 9f3d0e0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

proc/centrality/src/test/java/org/neo4j/gds/closeness/ClosenessCentralityMutateProcTest.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,10 @@ void shouldMutate() {
157157

158158
assertCypherResult(
159159
formatWithLocale(
160-
"CALL gds.graph.nodeProperties.stream('graph',['%1$s']) YIELD nodeId, propertyValue AS %1$s",
160+
"CALL gds.graph.nodeProperties.stream('graph',['%1$s']) " +
161+
"YIELD nodeId, propertyValue AS %1$s " +
162+
"RETURN * " +
163+
" ORDER BY nodeId ASC",
161164
MUTATE_PROPERTY
162165
),
163166
expectedCentralityResult
@@ -195,7 +198,10 @@ void betaShouldMutate() {
195198

196199
assertCypherResult(
197200
formatWithLocale(
198-
"CALL gds.graph.nodeProperties.stream('graph',['%1$s']) YIELD nodeId, propertyValue AS %1$s",
201+
"CALL gds.graph.nodeProperties.stream('graph',['%1$s']) " +
202+
"YIELD nodeId, propertyValue AS %1$s " +
203+
"RETURN * " +
204+
" ORDER BY nodeId ASC",
199205
MUTATE_PROPERTY
200206
),
201207
expectedCentralityResult

0 commit comments

Comments
 (0)