[ https://issues.apache.org/jira/browse/MINIFICPP-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adam Hunyadi resolved MINIFICPP-1281. ------------------------------------- Resolution: Fixed > 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: 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)