Skip to content

Commit c722642

Browse files
committed
Fix TestTrash
1 parent a70abec commit c722642

File tree

1 file changed

+2
-1
lines changed
  • hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs

1 file changed

+2
-1
lines changed

hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestTrash.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,9 +642,10 @@ public void testPluggableTrash() throws IOException {
642642
// Test FileSystem implementation that implements getTrashPolicy to return custom TrashPolicy
643643
// regardless of fs.trash.classname
644644
conf.setClass("fs.file.impl", TestLFSWithCustomTrashPolicy.class, FileSystem.class);
645+
conf.setBoolean("fs.file.impl.disable.cache", true);
645646
FileSystem fs = FileSystem.getLocal(conf);
646647
conf.set("fs.defaultFS", fs.getUri().toString());
647-
Trash trash = new Trash(conf);
648+
Trash trash = new Trash(fs, conf);
648649
assertInstanceOf(TestLFSWithCustomTrashPolicy.CustomTrashPolicy.class, trash.getTrashPolicy());
649650
}
650651
}

0 commit comments

Comments
 (0)