Skip to content

Commit 3e6c131

Browse files
vnickolovMats-SX
andcommitted
Fix failing tests
Co-authored-by: Mats Rydberg <[email protected]>
1 parent c3394bb commit 3e6c131

File tree

2 files changed

+22
-26
lines changed

2 files changed

+22
-26
lines changed

alpha/alpha-proc/src/test/java/org/neo4j/graphalgo/triangle/TriangleDocTest.java

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,15 @@ void shouldWriteTriangleCount() {
104104
" orientation: 'UNDIRECTED'" +
105105
" }" +
106106
" }," +
107-
" writeProperty: 'triangles'," +
108-
" clusteringCoefficientProperty: 'clusteringCoefficient'" +
107+
" writeProperty: 'triangles'" +
109108
" })" +
110-
" YIELD nodeCount, triangleCount, averageClusteringCoefficient";
109+
" YIELD nodeCount, triangleCount";
111110

112-
String expected = "+----------------------------------------------------------+" + NL +
113-
"| nodeCount | triangleCount | averageClusteringCoefficient |" + NL +
114-
"+----------------------------------------------------------+" + NL +
115-
"| 6 | 3 | 0.6055555555555555 |" + NL +
116-
"+----------------------------------------------------------+" + NL +
111+
String expected = "+---------------------------+" + NL +
112+
"| nodeCount | triangleCount |" + NL +
113+
"+---------------------------+" + NL +
114+
"| 6 | 3 |" + NL +
115+
"+---------------------------+" + NL +
117116
"1 row" + NL;
118117

119118
String actual = runQuery(query, Result::resultAsString);
@@ -168,16 +167,15 @@ void shouldWriteTriangleCountForYelpDataset() {
168167
" }" +
169168
" }," +
170169
" concurrency: 4," +
171-
" writeProperty: 'triangles'," +
172-
" clusteringCoefficientProperty: 'coefficient'" +
170+
" writeProperty: 'triangles'" +
173171
" })" +
174-
" YIELD nodeCount, triangleCount, averageClusteringCoefficient";
172+
" YIELD nodeCount, triangleCount";
175173

176-
String expected = "+----------------------------------------------------------+" + NL +
177-
"| nodeCount | triangleCount | averageClusteringCoefficient |" + NL +
178-
"+----------------------------------------------------------+" + NL +
179-
"| ? | ? | 0.0523 |" + NL +
180-
"+----------------------------------------------------------+" + NL +
174+
String expected = "+---------------------------+" + NL +
175+
"| nodeCount | triangleCount |" + NL +
176+
"+---------------------------+" + NL +
177+
"| ? | ? |" + NL +
178+
"+---------------------------+" + NL +
181179
"1 row" + NL;
182180

183181
String actual = runQuery(query, Result::resultAsString);
@@ -190,15 +188,14 @@ void shouldWriteWithCypherProjection() {
190188
String query = " CALL gds.triangleCount.write({" +
191189
" nodeQuery: 'MATCH (p:Person) RETURN id(p) AS id'," +
192190
" relationshipQuery: 'MATCH (p1:Person)-[:KNOWS]-(p2:Person) RETURN id(p1) AS source, id(p2) AS target'," +
193-
" writeProperty: 'triangle'," +
194-
" clusteringCoefficientProperty: 'coefficient'" +
195-
" }) YIELD nodeCount, triangleCount, averageClusteringCoefficient";
196-
197-
String expected = "+----------------------------------------------------------+" + NL +
198-
"| nodeCount | triangleCount | averageClusteringCoefficient |" + NL +
199-
"+----------------------------------------------------------+" + NL +
200-
"| 6 | 3 | 0.6055555555555555 |" + NL +
201-
"+----------------------------------------------------------+" + NL +
191+
" writeProperty: 'triangle'" +
192+
" }) YIELD nodeCount, triangleCount";
193+
194+
String expected = "+---------------------------+" + NL +
195+
"| nodeCount | triangleCount |" + NL +
196+
"+---------------------------+" + NL +
197+
"| 6 | 3 |" + NL +
198+
"+---------------------------+" + NL +
202199
"1 row" + NL;
203200

204201
String actual = runQuery(query, Result::resultAsString);

proc/community/src/test/java/org/neo4j/graphalgo/triangle/TriangleCountProcValidationTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ static Stream<Arguments> unfiltered() {
143143
.algo("triangleCount")
144144
.writeMode()
145145
.addParameter("writeProperty", "testTriangleCount")
146-
.addParameter("clusteringCoefficientProperty", "clusteringCoefficient")
147146
.yields(),
148147
"Write"
149148
),

0 commit comments

Comments
 (0)