You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Joseph Witt (JIRA)" <ji...@apache.org> on 2017/12/06 06:51:00 UTC
[jira] [Updated] (NIFI-4659) TestAbstractListProcessor tests are
brittle and environmentally sensitive - needs refactor or to be integration
test
[ https://issues.apache.org/jira/browse/NIFI-4659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joseph Witt updated NIFI-4659:
------------------------------
Fix Version/s: 1.5.0
Status: Patch Available (was: Open)
https://github.com/apache/nifi/pull/2319
> TestAbstractListProcessor tests are brittle and environmentally sensitive - needs refactor or to be integration test
> --------------------------------------------------------------------------------------------------------------------
>
> Key: NIFI-4659
> URL: https://issues.apache.org/jira/browse/NIFI-4659
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions, Tools and Build
> Environment: Travis-CI
> https://api.travis-ci.org/jobs/311660403/log.txt?deansi=true
> Reporter: Joseph Witt
> Assignee: Joseph Witt
> Fix For: 1.5.0
>
>
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running org.apache.nifi.processor.util.list.TestAbstractListProcessor
> Tests run: 16, Failures: 2, Errors: 0, Skipped: 2, Time elapsed: 4.323 sec <<< FAILURE! - in org.apache.nifi.processor.util.list.TestAbstractListProcessor
> testPreviouslySkippedEntriesEmittedOnNextIterationSecondPrecision(org.apache.nifi.processor.util.list.TestAbstractListProcessor) Time elapsed: 0.024 sec <<< FAILURE!
> java.lang.AssertionError: expected:<0> but was:<2>
> at org.apache.nifi.processor.util.list.TestAbstractListProcessor.testPreviouslySkippedEntriesEmmitedOnNextIteration(TestAbstractListProcessor.java:145)
> at org.apache.nifi.processor.util.list.TestAbstractListProcessor.testPreviouslySkippedEntriesEmittedOnNextIterationSecondPrecision(TestAbstractListProcessor.java:173)
> testPreviouslySkippedEntriesEmittedOnNextIterationSecondPrecision(org.apache.nifi.processor.util.list.TestAbstractListProcessor) Time elapsed: 0.025 sec <<< FAILURE!
> java.lang.AssertionError:
> State dump:
> --------------------------------------------------------------------
> timestamp date from timestamp t0 delta
> ------------------- ------------- ----------------------- --------
> started at = 1512446996997 2017-12-05T04:09:56.997 0
> current time = 1512446997005 2017-12-05T04:09:57.005 0
> ---- processor state -----------------------------------------------
> processed.timestamp = na
> listing.timestamp = na
> ---- input folder contents -----------------------------------------
> id = 1512446996000 2017-12-05T04:09:56.000 -1005
> id2 = 1512446996000 2017-12-05T04:09:56.000 -1005
> ---- output flowfiles ----------------------------------------------
> id = 1512446996000 2017-12-05T04:09:56.000 -1005
> id2 = 1512446996000 2017-12-05T04:09:56.000 -1005
> REL_SUCCESS count = 2
> --------------------------------------------------------------------
> Running org.apache.nifi.processor.util.pattern.TestExceptionHandler
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec - in org.apache.nifi.processor.util.pattern.TestExceptionHandler
> Running org.apache.nifi.processor.util.pattern.TestRollbackOnFailure
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec - in org.apache.nifi.processor.util.pattern.TestRollbackOnFailure
> Results :
> Failed tests:
> org.apache.nifi.processor.util.list.TestAbstractListProcessor.testPreviouslySkippedEntriesEmittedOnNextIterationSecondPrecision(org.apache.nifi.processor.util.list.TestAbstractListProcessor)
> Run 1: TestAbstractListProcessor.testPreviouslySkippedEntriesEmittedOnNextIterationSecondPrecision:173->testPreviouslySkippedEntriesEmmitedOnNextIteration:145 expected:<0> but was:<2>
> Run 2: TestAbstractListProcessor.testPreviouslySkippedEntriesEmittedOnNextIterationSecondPrecision State dump:
> --------------------------------------------------------------------
> timestamp date from timestamp t0 delta
> ------------------- ------------- ----------------------- --------
> started at = 1512446996997 2017-12-05T04:09:56.997 0
> current time = 1512446997005 2017-12-05T04:09:57.005 0
> ---- processor state -----------------------------------------------
> processed.timestamp = na
> listing.timestamp = na
> ---- input folder contents -----------------------------------------
> id = 1512446996000 2017-12-05T04:09:56.000 -1005
> id2 = 1512446996000 2017-12-05T04:09:56.000 -1005
> ---- output flowfiles ----------------------------------------------
> id = 1512446996000 2017-12-05T04:09:56.000 -1005
> id2 = 1512446996000 2017-12-05T04:09:56.000 -1005
> REL_SUCCESS count = 2
> --------------------------------------------------------------------
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)