mirror of https://github.com/apache/nifi.git
NIFI-1267 removed previous technique to force exception in test
This commit is contained in:
parent
0c7617b686
commit
3ecccf02de
|
@ -210,10 +210,6 @@ public class PutHDFSTest {
|
|||
FileSystem fs = FileSystem.get(config);
|
||||
Path p = new Path(dirName).makeQualified(fs.getUri(), fs.getWorkingDirectory());
|
||||
|
||||
// modify permissions to ensure no one can write to this directory,
|
||||
// forcing IOException downstream
|
||||
fs.setPermission(p, new FsPermission(FsAction.READ, FsAction.READ, FsAction.READ));
|
||||
|
||||
TestRunner runner = TestRunners.newTestRunner(new PutHDFS() {
|
||||
@Override
|
||||
protected void changeOwner(ProcessContext context, FileSystem hdfs, Path name) {
|
||||
|
|
Loading…
Reference in New Issue