File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments