[ 
https://issues.apache.org/jira/browse/NIFI-10302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Handermann updated NIFI-10302:
------------------------------------
    Fix Version/s: 1.18.0

> Intermittent Failures in TestMonitorActivity
> --------------------------------------------
>
>                 Key: NIFI-10302
>                 URL: https://issues.apache.org/jira/browse/NIFI-10302
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Tools and Build
>            Reporter: David Handermann
>            Assignee: David Handermann
>            Priority: Major
>             Fix For: 1.18.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The {{TestMonitorActivity}} class has several methods that could result in 
> intermittent failures, particularly on resource-constrained environments such 
> as GitHub Actions.
> Multiple methods include calls to {{Thread.sleep()}}, which may not allow 
> enough time to complete operations in some cases. These methods should be 
> evaluated to improve test reliability.
> {noformat}
> Error:  
> org.apache.nifi.processors.standard.TestMonitorActivity.testFirstMessageWithInherit
>   Time elapsed: 5.79 s  <<< FAILURE!
> org.opentest4j.AssertionFailedError: expected: <10> but was: <9>
>       at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:55)
>       at 
> org.junit.jupiter.api.AssertionUtils.failNotEqual(AssertionUtils.java:62)
>       at 
> org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:150)
>       at 
> org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:145)
>       at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:527)
>       at 
> org.apache.nifi.util.StandardProcessorTestRunner.assertTransferCount(StandardProcessorTestRunner.java:360)
>       at 
> org.apache.nifi.processors.standard.TestMonitorActivity.testFirstMessageWithInherit(TestMonitorActivity.java:376)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to