Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.
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
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public void nonsenseArgsGiveError() throws Exception {

assertNull(cliargs);

assertTrue(bout.toString().startsWith("usage: cypher-shell [-h]"));
assertTrue(bout.toString().contains("cypher-shell [-h]"));
assertTrue(bout.toString().contains("cypher-shell: error: unrecognized arguments: '-notreally'"));
}

Expand All @@ -134,7 +134,7 @@ public void nonsenseUrlGivesError() throws Exception {
assertNull("should have failed", cliargs);

assertTrue("expected usage: " + bout.toString(),
bout.toString().startsWith("usage: cypher-shell [-h]"));
bout.toString().contains("cypher-shell [-h]"));
assertTrue("expected error: " + bout.toString(),
bout.toString().contains("cypher-shell: error: Failed to parse address"));
assertTrue("expected error detail: " + bout.toString(),
Expand Down