void () { int N = Timings.adjustAccordingToMySpeed(40, true); List<String> list = Collections.nCopies(N, null); for (int i = 0; i<10 && checkTestTimeout(i); i++) { COUNT.set(0); logElapsed(()-> JobLauncher.getInstance().invokeConcurrentlyUnderProgress(list, null, __ -> { JobLauncher.getInstance().invokeConcurrentlyUnderProgress(list, null, ___ -> { COUNT.incrementAndGet(); return true; }); return true; })); assertEquals(list.size()*list.size(), COUNT.get()); } }