Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rA7ipyGU] Adapt test assertions to antlr #622

Merged
merged 2 commits into from
May 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions core/src/test/java/apoc/periodic/PeriodicTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ public void testRunDown() {

@Test
public void testPeriodicIterateErrors() {
final String newline = System.lineSeparator();
testResult(
db,
"CALL apoc.periodic.iterate('UNWIND range(0,99) as id RETURN id', 'CREATE null', {batchSize:10,iterateList:true})",
Expand All @@ -328,9 +327,7 @@ public void testPeriodicIterateErrors() {
assertEquals(10L, row.get("failedBatches"));

String expectedPattern =
"(?s)Invalid input 'null': expected.* \\(line 1, column 55 \\(offset: 54\\)\\)\\n"
+ "\\\"UNWIND \\$_batch AS _batch WITH _batch.id AS id CREATE null\\\"\\n"
+ " \\^";
"(?s)Invalid input.*\\\"UNWIND \\$_batch AS _batch WITH _batch.id AS id CREATE null\\\".*";

String expectedBatchPattern = "org.neo4j.graphdb.QueryExecutionException: " + expectedPattern;

Expand Down
Loading