From a2dbe5df808924569aae156e533ada516c2dca2a Mon Sep 17 00:00:00 2001 From: zhaoym6 Date: Mon, 6 Jul 2020 15:46:57 +0800 Subject: [PATCH] update UT to change err stream --- .../src/test/java/org/apache/hadoop/hdfs/TestQuota.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestQuota.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestQuota.java index cb04a8157f3..3b3ab4b1468 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestQuota.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestQuota.java @@ -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:"),