You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Ferenc Gerlits (Jira)" <ji...@apache.org> on 2020/12/12 11:43:00 UTC
[jira] [Created] (MINIFICPP-1432) NetworkPrioritizerServiceTests
are sensitive to timing
Ferenc Gerlits created MINIFICPP-1432:
-----------------------------------------
Summary: NetworkPrioritizerServiceTests are sensitive to timing
Key: MINIFICPP-1432
URL: https://issues.apache.org/jira/browse/MINIFICPP-1432
Project: Apache NiFi MiNiFi C++
Issue Type: Bug
Reporter: Ferenc Gerlits
Assignee: Ferenc Gerlits
The throughput of {{NetworkPrioritizerService}} depends on timing, as a certain number of tokens are added to the "token bucket" every second, and packages are allowed to go through an interface only if the interface has enough tokens in its bucket.
Make the clock-dependency of {{NetworkPrioritizerService}} explicit and mockable, and mock it out in the {{NetworkPrioritizerServiceTests}} unit tests.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)