This repository was archived by the owner on Jul 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
integration-test/java/org/neo4j/shell/commands
test/java/org/neo4j/shell/test/bolt Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,13 @@ public void cypherWithOrder() throws CommandException {
190190 String serverVersion = shell .getServerVersion ();
191191 assumeThat ( version (serverVersion ), greaterThanOrEqualTo (version ("3.6" )));
192192
193+ // Make sure we are creating a new NEW index
194+ try {
195+ shell .execute ( "DROP INDEX ON :Person(age)" );
196+ } catch ( Exception e ) {
197+ // ignore if the index didn't exist
198+ }
199+
193200 shell .execute ( "CREATE INDEX ON :Person(age)" );
194201 shell .execute ( "CALL db.awaitIndexes()" );
195202
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ static FakeResult parseStatement(@Nonnull final String statement) {
112112 return statementResult ;
113113 }
114114 }
115- throw new IllegalArgumentException ("No idea how to parse this statement" );
115+ throw new IllegalArgumentException ("No idea how to parse this statement: " + statement );
116116 }
117117
118118 private static boolean isPing ( @ Nonnull String statement )
You can’t perform that action at this time.
0 commit comments