Browse Source

HADOOP-536. Fix a bug with unit tests on Windows. Contributed by Mahadev.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@447600 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting 19 năm trước cách đây
mục cha
commit
175994a11a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/test/org/apache/hadoop/mapred/MRCaching.java

+ 1 - 1
src/test/org/apache/hadoop/mapred/MRCaching.java

@@ -65,7 +65,7 @@ public class MRCaching {
         Path file = new Path("/tmp");
         fs.mkdirs(file);
         Path fileOut = new Path(file, "test.txt");
-        fs.delete(file);
+        fs.delete(fileOut);
         DataOutputStream out = fs.create(fileOut);
 
         for (int i = 0; i < localArchives.length; i++) {