update UT to change err stream

This commit is contained in:
zhaoym6 2020-07-06 15:46:57 +08:00
parent 3c4f9ee8f1
commit a2dbe5df80
1 changed files with 2 additions and 2 deletions

View File

@ -1238,7 +1238,7 @@ public class TestQuota {
new String[] {"-setQuota",
String.valueOf(HdfsConstants.QUOTA_DONT_SET), dir.toString()});
assertEquals(0, ret);
scanIntoList(OUT_STREAM, outs);
scanIntoList(ERR_STREAM, outs);
assertEquals(1, outs.size());
assertThat(outs.get(0),
is(allOf(containsString("WARN:"),
@ -1282,7 +1282,7 @@ public class TestQuota {
new String[] {"-setSpaceQuota",
String.valueOf(HdfsConstants.QUOTA_DONT_SET), dir.toString()});
assertEquals(0, ret);
scanIntoList(OUT_STREAM, outs);
scanIntoList(ERR_STREAM, outs);
assertEquals(1, outs.size());
assertThat(outs.get(0),
is(allOf(containsString("WARN:"),