[jira] [Updated] (NIFI-10835) Improve Performance of TestControlRate

2022-11-22 Thread David Handermann (Jira)


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

David Handermann updated NIFI-10835:

Fix Version/s: 1.19.0
   Resolution: Fixed
   Status: Resolved  (was: Patch Available)

> Improve Performance of TestControlRate
> --
>
> Key: NIFI-10835
> URL: https://issues.apache.org/jira/browse/NIFI-10835
> Project: Apache NiFi
>  Issue Type: Improvement
>  Components: Extensions, Tools and Build
>Reporter: David Handermann
>Assignee: David Handermann
>Priority: Minor
> Fix For: 1.19.0
>
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> The {{TestControlRate}} class takes over 12 seconds to run due to the use of 
> Thread.sleep() across multiple test methods.
> The test class can be improved by implementing a method to override the 
> current time. The default implementation should maintain the current behavior 
> of returning {{System.currentTimeMillis()}} but the extended test class can 
> override the implementation to increment current time, allowing the processor 
> logic to function as designed.



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


[jira] [Updated] (NIFI-10835) Improve Performance of TestControlRate

2022-11-16 Thread David Handermann (Jira)


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

David Handermann updated NIFI-10835:

Status: Patch Available  (was: Open)

> Improve Performance of TestControlRate
> --
>
> Key: NIFI-10835
> URL: https://issues.apache.org/jira/browse/NIFI-10835
> Project: Apache NiFi
>  Issue Type: Improvement
>  Components: Extensions, Tools and Build
>Reporter: David Handermann
>Assignee: David Handermann
>Priority: Minor
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> The {{TestControlRate}} class takes over 12 seconds to run due to the use of 
> Thread.sleep() across multiple test methods.
> The test class can be improved by implementing a method to override the 
> current time. The default implementation should maintain the current behavior 
> of returning {{System.currentTimeMillis()}} but the extended test class can 
> override the implementation to increment current time, allowing the processor 
> logic to function as designed.



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