This is an automated email from the ASF dual-hosted git repository.

exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new 3f2f5a02e0 NIFI-12768 Removed unstable assertions from TestListFile
3f2f5a02e0 is described below

commit 3f2f5a02e05dbb2bd706613e648b9c562a34785a
Author: Joseph Witt <joew...@apache.org>
AuthorDate: Tue Feb 20 17:15:16 2024 -0700

    NIFI-12768 Removed unstable assertions from TestListFile
    
    Additional assertion removals which assumed ordering that isn't guaranteed 
or enforced by the tests
    
    This closes #8438
    
    Signed-off-by: David Handermann <exceptionfact...@apache.org>
---
 .../test/java/org/apache/nifi/processors/standard/TestListFile.java   | 4 ----
 1 file changed, 4 deletions(-)

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 2f5a9a8c09..dc5fd1d958 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
@@ -306,8 +306,6 @@ public class TestListFile {
         runner.assertAllFlowFilesTransferred(ListFile.REL_SUCCESS);
         final List<MockFlowFile> successFiles2 = 
runner.getFlowFilesForRelationship(ListFile.REL_SUCCESS);
         assertEquals(2, successFiles2.size());
-        assertEquals(file2.getName(), 
successFiles2.get(0).getAttribute("filename"));
-        assertEquals(file1.getName(), 
successFiles2.get(1).getAttribute("filename"));
         assertVerificationOutcome(Outcome.SUCCESSFUL, "Successfully listed .* 
Found 3 objects.  Of those, 2 match the filter.");
 
         // exclude newest
@@ -317,8 +315,6 @@ public class TestListFile {
         runner.assertAllFlowFilesTransferred(ListFile.REL_SUCCESS);
         final List<MockFlowFile> successFiles3 = 
runner.getFlowFilesForRelationship(ListFile.REL_SUCCESS);
         assertEquals(2, successFiles3.size());
-        assertEquals(file3.getName(), 
successFiles3.get(0).getAttribute("filename"));
-        assertEquals(file2.getName(), 
successFiles3.get(1).getAttribute("filename"));
         assertVerificationOutcome(Outcome.SUCCESSFUL, "Successfully listed .* 
Found 3 objects.  Of those, 2 match the filter.");
 
         // exclude oldest and newest

Reply via email to