turcsanyip commented on a change in pull request #5550: URL: https://github.com/apache/nifi/pull/5550#discussion_r762803566
########## File path: nifi-mock/src/main/java/org/apache/nifi/util/StandardProcessorTestRunner.java ########## @@ -221,28 +221,18 @@ public void run(final int iterations, final boolean stopOnFinish, final boolean } catch (final InterruptedException e1) { } - int finishedCount = 0; - boolean unscheduledRun = false; for (final Future<Throwable> future : futures) { try { final Throwable thrown = future.get(); // wait for the result if (thrown != null) { throw new AssertionError(thrown); } - - if (++finishedCount == 1) { - unscheduledRun = true; - unSchedule(); - } } catch (final Exception e) { } } - if (!unscheduledRun) { - unSchedule(); - } - if (stopOnFinish) { + unSchedule(); Review comment: @markap14 I reveretd the change and added `stopOnFinish` checks to existing `if` statements. Could you please check this version? -- 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-unsubscr...@nifi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org