Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
Fix non-idempotent test.
Browse files Browse the repository at this point in the history
Also add more info to an Exception.
  • Loading branch information
sherfert committed Jun 4, 2020
1 parent ff87529 commit 9306196
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,13 @@ public void cypherWithOrder() throws CommandException {
String serverVersion = shell.getServerVersion();
assumeTrue((minorVersion(serverVersion) == 6 && majorVersion(serverVersion) == 3) || majorVersion(serverVersion) > 3);

// Make sure we are creating a new NEW index
try {
shell.execute( "DROP INDEX ON :Person(age)" );
} catch ( Exception e ) {
// ignore if the index didn't exist
}

shell.execute( "CREATE INDEX ON :Person(age)" );
shell.execute( "CALL db.awaitIndexes()" );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,6 @@ static FakeResult parseStatement(@Nonnull final String statement) {
return statementResult;
}
}
throw new IllegalArgumentException("No idea how to parse this statement");
throw new IllegalArgumentException("No idea how to parse this statement: " + statement);
}
}

0 comments on commit 9306196

Please sign in to comment.