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


##########
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:
   Good question, in this case the number `5` matches the number of FlowFiles 
queued, which should be batched together, but this ensures that all of them 
should be processed.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to