Skip to content

Commit 855880f

Browse files
committed
Polishing
1 parent 6103e4d commit 855880f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

junit-platform-engine/src/main/java/org/junit/platform/engine/support/hierarchical/ConcurrentHierarchicalTestExecutorService.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ private WorkQueue.Entry enqueue(TestTask testTask) {
117117
}
118118

119119
private void forkAll(Collection<WorkQueue.Entry> entries) {
120+
if (entries.isEmpty()) {
121+
return;
122+
}
120123
workQueue.addAll(entries);
121124
// start at most (parallelism - 1) new workers as this method is called from a worker thread holding a lease
122125
for (int i = 0; i < Math.min(parallelism - 1, entries.size()); i++) {

0 commit comments

Comments
 (0)