tests/neo4j: hardening the test not_empty to `length == 1`
authorJean Privat <jean@pryen.org>
Thu, 15 Jun 2017 13:18:58 +0000 (09:18 -0400)
committerJean Privat <jean@pryen.org>
Thu, 15 Jun 2017 13:18:58 +0000 (09:18 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

tests/test_neo4j.nit

index 16038e9..5da93bb 100644 (file)
@@ -126,5 +126,5 @@ var query = (new CypherQuery).
        nand("n.key = {key}").
        nreturn("n, r, m")
 var res7 = client.cypher(query)
-assert not res7.as(JsonObject)["data"].as(JsonArray).is_empty
+assert res7.as(JsonObject)["data"].as(JsonArray).length == 1