Adam Hunyadi created MINIFICPP-1281:
---------------------------------------

             Summary: Decrease the time spent sleeping in MiNiFi 
unit/integration tests
                 Key: MINIFICPP-1281
                 URL: https://issues.apache.org/jira/browse/MINIFICPP-1281
             Project: Apache NiFi MiNiFi C++
          Issue Type: Improvement
    Affects Versions: 0.7.0
            Reporter: Adam Hunyadi
            Assignee: Adam Hunyadi
             Fix For: 0.8.0


*Background:*

Some tests wait for many seconds in order to guarantee that all the paralell 
processing happens by the time the test makes its assertions. Using sleep for 
synching is a very bad pattern resulting in tests taking unnecessarily long to 
execute.

*Proposal:*

An alternative for setting a run-time for the tests is polling for events we 
expect to happen during the test allowing for an earlier finish in most of the 
cases. We should make an effort replacing unnecessarily long sleeps if possible.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to