Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit 4d5a59d

Browse files
author
Mark Needham
committed
fixing weird cypher error
1 parent 7d51b55 commit 4d5a59d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/src/test/java/org/neo4j/graphalgo/core/RandomGraphTestCase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected void failed(
5555
private static final String RANDOM_GRAPH_TPL =
5656
"FOREACH (x IN range(1, %d) | CREATE (:Label)) " +
5757
"WITH 0.1 AS p " +
58-
"MATCH (n1),(n2) WITH n1,n2 LIMIT 1000 WHERE rand() < p " +
58+
"MATCH (n1),(n2) WITH n1,n2,p LIMIT 1000 WHERE rand() < p " +
5959
"CREATE (n1)-[:TYPE {weight:ceil(10*rand())/10}]->(n2)";
6060

6161
private static final String RANDOM_LABELS =
@@ -88,7 +88,7 @@ static GraphDatabaseAPI buildGraph(int nodeCount) {
8888
final GraphDatabaseService db = TestDatabaseCreator.createTestDatabase();
8989
for (String cypher : cyphers) {
9090
try (Transaction tx = db.beginTx()) {
91-
db.execute(cypher).close();
91+
db.execute(cypher).close();
9292
tx.success();
9393
} catch (Exception e) {
9494
markFailure();

0 commit comments

Comments
 (0)