Browse Source

HDFS-13201. Fix prompt message in testPolicyAndStateCantBeNull. Contributed by chencan.

(cherry picked from commit aa6995fde289719e0b300e11568c5e68c36b5d05)
(cherry picked from commit b004d305e933bdb588b84062be87c23168640697)
Wei-Chiu Chuang 5 years ago
parent
commit
d8c60f829f

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs-client/src/test/java/org/apache/hadoop/hdfs/protocol/TestErasureCodingPolicyInfo.java

@@ -43,7 +43,7 @@ public class TestErasureCodingPolicyInfo {
     try {
     try {
       new ErasureCodingPolicyInfo(SystemErasureCodingPolicies
       new ErasureCodingPolicyInfo(SystemErasureCodingPolicies
           .getByID(RS_6_3_POLICY_ID), null);
           .getByID(RS_6_3_POLICY_ID), null);
-      fail("Null policy should fail");
+      fail("Null policy state should fail");
     } catch (NullPointerException expected) {
     } catch (NullPointerException expected) {
     }
     }
   }
   }