Skip to content

Commit b167d76

Browse files
committed
fix: corrected batch size for bounded concurrency
1 parent 9fcd620 commit b167d76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

run-tests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1632,7 +1632,7 @@ function run_all_tests_parallel(array $test_files, array $env, ?string $redir_te
16321632
$maxBatchSize = $valgrind ? 1 : ($shuffle ? 4 : 32);
16331633
$averageFilesPerWorker = max(1, (int) ceil($totalFileCount / count($workerProcs)));
16341634
$batchSize = min($maxBatchSize, $averageFilesPerWorker);
1635-
while (count($files) <= $batchSize && $file = array_pop($test_files)) {
1635+
while (count($files) < $batchSize && $file = array_pop($test_files)) {
16361636
foreach ($fileConflictsWith[$file] as $conflictKey) {
16371637
$conflictGroup = $fileConflictGroups[$file][$conflictKey] ?? null;
16381638
if (

0 commit comments

Comments
 (0)