Skip to content

Commit

Permalink
Merge pull request #10985 from MishaDemianenko/3.4-result-serializati…
Browse files Browse the repository at this point in the history
…on-it

Use unique label and print result on failure in QueryResultsSerialization
  • Loading branch information
MishaDemianenko committed Feb 12, 2018
2 parents ea7e9fd + 7252ab5 commit d4d1607
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,13 +396,14 @@ public void shouldFailIfTryingToReturnPropsOfDeletedRelationshipRow()
public void shouldFailIfTryingToReturnPropsOfDeletedRelationshipRest()
{
// given
graphdb().execute( "CREATE (:Start)-[:R {p: 'a property'}]->(:End)" );
graphdb().execute( "CREATE (:Start)-[:MARKER {p: 'a property'}]->(:End)" );

// execute and commit
Response commit = http.POST( commitResource,
queryAsJsonRest( "MATCH (s)-[r:R]->(e) DELETE r RETURN r.p" ) );
queryAsJsonRest( "MATCH (s)-[r:MARKER]->(e) DELETE r RETURN r.p" ) );

assertThat( commit, hasErrors( Status.Statement.EntityNotFound ) );
assertThat( "Error raw response: " + commit.rawContent(), commit,
hasErrors( Status.Statement.EntityNotFound ) );
assertThat( commit.status(), equalTo( 200 ) );
assertThat( nodesInDatabase(), equalTo( 2L ) );
}
Expand Down

0 comments on commit d4d1607

Please sign in to comment.