[
https://issues.apache.org/jira/browse/NIFI-5704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16651056#comment-16651056
]
Peter Wicks commented on NIFI-5704:
-----------------------------------
The test adds files to a queue, and expects because they are added via a loop
that the queue times will be slightly different between the first and the last
files. However, apparently on your very fast system this fails sometimes, and
all FlowFile's actually get the same queue time... I guess there is nothing
wrong with this, it's a legitimate possibility. I'm adding in a 0.5 second
delay when the last FlowFile is queued in the test to ensure the timestamps are
different. Will PR.
> TestStandardProcessSession testBatchQueuedHaveSameQueuedTime is a brittle test
> ------------------------------------------------------------------------------
>
> Key: NIFI-5704
> URL: https://issues.apache.org/jira/browse/NIFI-5704
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.8.0
> Reporter: Joseph Witt
> Priority: Major
>
> [ERROR] Failures:
> [ERROR] TestStandardProcessSession.testBatchQueuedHaveSameQueuedTime:1691
> Queued times should not be equal.. Actual: 1539636497790
> [ERROR] Tests run: 59, Failures: 1, Errors: 0, Skipped: 1, Time elapsed:
> 0.102 s <<< FAILURE! - in
> org.apache.nifi.controller.repository.TestStandardProcessSession
> [ERROR]
> testBatchQueuedHaveSameQueuedTime(org.apache.nifi.controller.repository.TestStandardProcessSession)
> Time elapsed: 0.008 s <<< FAILURE!
> java.lang.AssertionError: Queued times should not be equal.. Actual:
> 1539636497790
> at
> org.apache.nifi.controller.repository.TestStandardProcessSession.testBatchQueuedHaveSameQueuedTime(TestStandardProcessSession.java:1691)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)