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

Commit eaeddde

Browse files
committed
Fix non-idempotent test.
Also add more info to an Exception.
1 parent 9f6f048 commit eaeddde

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

cypher-shell/src/integration-test/java/org/neo4j/shell/commands/CypherShellVerboseIntegrationTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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

cypher-shell/src/test/java/org/neo4j/shell/test/bolt/FakeResult.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 )

0 commit comments

Comments
 (0)