maedhroz commented on code in PR #1769:
URL: https://github.com/apache/cassandra/pull/1769#discussion_r938427747
##########
test/unit/org/apache/cassandra/tools/ToolRunner.java:
##########
@@ -402,8 +400,11 @@ public Exception getException()
*/
public void assertCleanStdErr()
{
- assertTrue("Failed because cleaned stdErr wasn't empty: " +
getCleanedStderr(),
- getCleanedStderr().isEmpty());
+ String raw = getStderr();
+ String cleaned = getCleanedStderr();
+ assertTrue("Failed to clean stderr completely.\nRaw (length=" +
raw.length() + "):\n" + raw +
+ "\nCleaned (length=" + cleaned.length() + "):\n" +
cleaned,
+ cleaned.trim().isEmpty());
Review Comment:
Not strictly necessary for the fix, but it makes clean stderr issues easier
to debug.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]