Skip to content

Commit 00cc4c2

Browse files
committed
Do not verify node ids in path while it's being rewritten in TCK
TCK rewrites ids of nodes and relationships in received paths with fake ids that start from zero. This is done to easily compare predefined path from feature file with received path. It makes entity ids predictable. This commit removes incorrect assertion during path rewriting. Previously this assertion did not fail because `Integer#notEquals()` always returned a falsy value due to a bug.
1 parent 1a6b60a commit 00cc4c2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

test/v1/tck/steps/matchacceptencesteps.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,6 @@ module.exports = function () {
155155
var segment;
156156
for (var i = 0; i < segments.length; i++) {
157157
segment = segments[i];
158-
if (startid.notEquals(segment.start.identity)) {
159-
throw new Error("Path segment does not make sense")
160-
}
161158
var relationship = segment.relationship;
162159
var endId = neo4j.int(segment.end.identity.toString());
163160
relationship.identity = neo4j.int(0);

0 commit comments

Comments
 (0)