We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c8e49f commit 71ceb91Copy full SHA for 71ceb91
src/harness/parallel/host.ts
@@ -208,8 +208,8 @@ namespace Harness.Parallel.Host {
208
workers.push(child);
209
}
210
211
- // It's only really worth doing an initial batching if there are a ton of files to go through
212
- if (totalFiles > 1000) {
+ // It's only really worth doing an initial batching if there are a ton of files to go through (and they have estimates)
+ if (totalFiles > 1000 && batchSize > 0) {
213
console.log("Batching initial test lists...");
214
const batches: { runner: TestRunnerKind | "unittest", file: string, size: number }[][] = new Array(batchCount);
215
const doneBatching = new Array(batchCount);
0 commit comments