[
https://issues.apache.org/jira/browse/NIFI-1501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15151650#comment-15151650
]
Tony Kurc commented on NIFI-1501:
---------------------------------
the test now includes widening a backoff repeately until either success or
backoff. I believe this is a good choice until the mock framework supports
better timing based test support.
> Test Monitor Activity has spurious failures
> -------------------------------------------
>
> Key: NIFI-1501
> URL: https://issues.apache.org/jira/browse/NIFI-1501
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Reporter: Joseph Witt
> Attachments:
> 0001-Fix-Nifi-1501-Test-Monitor-Activity-has-spurious-fai.patch,
> 0002-Added-Timeout-for-the-test-.-So-in-case-something-go.patch
>
>
> Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 9.816 sec <<<
> FAILURE! - in org.apache.nifi.processors.standard.TestMonitorActivity
> testFirstRunNoMessages(org.apache.nifi.processors.standard.TestMonitorActivity)
> Time elapsed: 1.321 sec <<< FAILURE!
> java.lang.AssertionError: expected:<0> but was:<1>
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.failNotEquals(Assert.java:834)
> at org.junit.Assert.assertEquals(Assert.java:645)
> at org.junit.Assert.assertEquals(Assert.java:631)
> at
> org.apache.nifi.util.StandardProcessorTestRunner.assertTransferCount(StandardProcessorTestRunner.java:330)
> at
> org.apache.nifi.processors.standard.TestMonitorActivity.testFirstRunNoMessages(TestMonitorActivity.java:204)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)