diff --git a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestListFile.java b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestListFile.java index 9fd7a3dc68..7111686caa 100644 --- a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestListFile.java +++ b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestListFile.java @@ -473,17 +473,6 @@ public class TestListFile { runner.assertAllFlowFilesTransferred(ListFile.REL_SUCCESS); final List successFiles1 = runner.getFlowFilesForRelationship(ListFile.REL_SUCCESS); assertEquals(3, successFiles1.size()); - - // make file2 unreadable and test (setReadable() does not work on Windows) - if (!System.getProperty("os.name").toLowerCase().startsWith("windows")) { - assertTrue(file2.setReadable(false)); - runner.clearTransferState(); - runner.setProperty(ListFile.RECURSE, "false"); - runner.run(); - runner.assertAllFlowFilesTransferred(ListFile.REL_SUCCESS); - final List successFiles2 = runner.getFlowFilesForRelationship(ListFile.REL_SUCCESS); - assertEquals(2, successFiles2.size()); - } } @Test