Skip to content

Commit 5bb87c0

Browse files
committed
Fix tests
1 parent 9c2f2db commit 5bb87c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/redislabs/redisgraph/RedisGraphAPITest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void testConnectNodes() throws Exception {
5050
ResultSet createResult2 = api.query("CREATE (:person{name:'amit',age:30})");
5151

5252
// Connect source and destination nodes.
53-
ResultSet matchResult = api.query("MATCH (a:person), (b:person) WHERE (a.name = 'roi' AND b.name='amit') CREATE (a)-[knows]->(a)");
53+
ResultSet matchResult = api.query("MATCH (a:person), (b:person) WHERE (a.name = 'roi' AND b.name='amit') CREATE (a)-[:knows]->(a)");
5454

5555
Assert.assertFalse(matchResult.hasNext());
5656
Assert.assertNull(matchResult.getStatistics().getStringValue(Label.NODES_CREATED));
@@ -68,7 +68,7 @@ public void testQuery() throws Exception {
6868
ResultSet create2Result = api.query("CREATE (:qhuman{name:'amit',age:30})");
6969

7070
// Connect source and destination nodes.
71-
ResultSet connectResult= api.query("MATCH (a:qhuman), (b:qhuman) WHERE (a.name = 'roi' AND b.name='amit') CREATE (a)-[knows]->(b)");
71+
ResultSet connectResult= api.query("MATCH (a:qhuman), (b:qhuman) WHERE (a.name = 'roi' AND b.name='amit') CREATE (a)-[:knows]->(b)");
7272

7373
// Query
7474
ResultSet resultSet = api.query("MATCH (a:qhuman)-[knows]->(:qhuman) RETURN a");

0 commit comments

Comments
 (0)