Mark Payne created NIFI-6660:
--------------------------------

             Summary: Occasional test failure in TestIndexDirectoryManager
                 Key: NIFI-6660
                 URL: https://issues.apache.org/jira/browse/NIFI-6660
             Project: Apache NiFi
          Issue Type: Bug
          Components: Core Framework
            Reporter: Mark Payne
            Assignee: Mark Payne


Occasionally the TestIndexDirectoryManager test will fail, in the 
testGetDirectoriesBefore method. The assertion on Line 160 fails: 
`assertEquals(2, dirsBefore.size());`

This appears to be due to the fact that in lines 152 and 153, we obtain a 
timestamp, then create a directory, and the assertion assumes that the last 
modified date of the directory will be <= the timestamp. However, if the 
timestamp changes between when we obtain the timestamp and when the file is 
created, this won't be true.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to