Unescape \\r in stash dump

Oh windows.....

Relates to #22195
This commit is contained in:
Nik Everett 2016-12-19 10:57:26 -05:00
parent 63af03a104
commit 5bec4f8024
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ public abstract class ESClientYamlSuiteTestCase extends ESRestTestCase {
protected void afterIfFailed(List<Throwable> errors) {
// Dump the stash on failure. Instead of dumping it in true json we escape `\n`s so stack traces are easier to read
logger.info("Stash dump on failure [{}]",
XContentHelper.toString(restTestExecutionContext.stash()).replace("\\n", "\n").replace("\\t", "\t"));
XContentHelper.toString(restTestExecutionContext.stash()).replace("\\n", "\n").replace("\\r", "\r").replace("\\t", "\t"));
super.afterIfFailed(errors);
}