Parcourir la source

HDFS-4180. Update TestFileCreation for HDFS-4122. Contributed by Jing Zhao

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1@1409070 13f79535-47bb-0310-9956-ffa450edef68
Tsz-wo Sze il y a 12 ans
Parent
commit
5e4f0cf7cf
2 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 2 0
      CHANGES.txt
  2. 1 1
      src/test/org/apache/hadoop/hdfs/TestFileCreation.java

+ 2 - 0
CHANGES.txt

@@ -307,6 +307,8 @@ Release 1.2.0 - unreleased
     HADOOP-8963. CopyFromLocal doesn't always create user directory.
     (Arpit Gupta via suresh)
 
+    HDFS-4180. Update TestFileCreation for HDFS-4122.  (Jing Zhao via szetszwo)
+
 Release 1.1.1 - Unreleased
 
   INCOMPATIBLE CHANGES

+ 1 - 1
src/test/org/apache/hadoop/hdfs/TestFileCreation.java

@@ -250,7 +250,7 @@ public class TestFileCreation {
         fs.close();
         assertTrue("Did not prevent directory from being overwritten.", false);
       } catch (IOException ie) {
-        if (!ie.getMessage().contains("already exists as a directory."))
+        if (!ie.getMessage().contains("already exists as a directory"))
           throw ie;
       }