You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2022/11/22 16:11:37 UTC

[GitHub] [nifi] greyp9 commented on a diff in pull request #6671: NIFI-10835 Improve performance of TestControlRate

greyp9 commented on code in PR #6671:
URL: https://github.com/apache/nifi/pull/6671#discussion_r1029542020


##########
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestControlRate.java:
##########
@@ -86,18 +97,18 @@ public void testFileCountRate() throws InterruptedException {
         runner.assertQueueNotEmpty();
 
         // we have sent 3 files and after 1 second, we should be able to send the 4th
-        Thread.sleep(ONE_SEC_PLUS);
-        runner.run();
+        incrementCurrentTime();
+
+        runner.run(5);

Review Comment:
   Did you find that multiple iterations were needed sometimes?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org