You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Adam Hunyadi (Jira)" <ji...@apache.org> on 2020/07/09 16:25:00 UTC

[jira] [Updated] (MINIFICPP-1281) Decrease the time spent sleeping in MiNiFi unit/integration tests

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

Adam Hunyadi updated MINIFICPP-1281:
------------------------------------
    Labels: MiNiFi-CPP-Hygiene  (was: )

> 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
>            Priority: Minor
>              Labels: MiNiFi-CPP-Hygiene
>             Fix For: 0.8.0
>
>          Time Spent: 2h 10m
>  Remaining Estimate: 0h
>
> *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)