mirror of https://github.com/apache/nifi.git
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 <exceptionfactory@apache.org>
This commit is contained in:
parent
014d539b5e
commit
3f2f5a02e0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue