Skip to content

Commit ed0af02

Browse files
author
mpv1989
committed
Fix tests for cluster
1 parent a52f4e2 commit ed0af02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/java/com/arangodb/example/graph/GraphTraversalsInAQLExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void queryAllVertices() throws ArangoDBException, InterruptedException, E
4949
Collection<String> result = cursor.asListRemaining();
5050
assertThat(result.size(), is(10));
5151

52-
queryString = "FOR v IN 1..3 OUTBOUND 'circles/A' edges RETURN v._key";
52+
queryString = "WITH circles FOR v IN 1..3 OUTBOUND 'circles/A' edges RETURN v._key";
5353
cursor = db.query(queryString, null, null, String.class).get();
5454
result = cursor.asListRemaining();
5555
assertThat(result.size(), is(10));

src/test/java/com/arangodb/example/graph/ShortestPathInAQLExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public void queryShortestPathFromAToD() throws ArangoDBException, InterruptedExc
7575
assertThat(collection.size(), is(4));
7676
assertThat(collection, hasItems("A", "B", "C", "D"));
7777

78-
queryString = "FOR v, e IN OUTBOUND SHORTEST_PATH 'circles/A' TO 'circles/D' edges RETURN {'vertex': v._key, 'edge': e._key}";
78+
queryString = "WITH circles FOR v, e IN OUTBOUND SHORTEST_PATH 'circles/A' TO 'circles/D' edges RETURN {'vertex': v._key, 'edge': e._key}";
7979
cursor = db.query(queryString, null, null, Pair.class).get();
8080
assertThat(collection.size(), is(4));
8181
assertThat(collection, hasItems("A", "B", "C", "D"));

0 commit comments

Comments
 (0)