You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Marton Szasz (Jira)" <ji...@apache.org> on 2021/01/21 15:49:02 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 ]

Marton Szasz updated MINIFICPP-1281:
------------------------------------
    Fix Version/s:     (was: 0.8.0)
                   0.9.0

> 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.9.0
>
>          Time Spent: 10h 20m
>  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)