mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-14 09:49:40 -05:00
Merge pull request #9428 from Microsoft/runtests-parallel-skips-empty-buckets
runtests-parallel skips empty buckets
This commit is contained in:
@@ -193,7 +193,7 @@ if (taskConfigsFolder) {
|
||||
for (let i = 0; i < workerCount; i++) {
|
||||
const startPos = i * chunkSize;
|
||||
const len = Math.min(chunkSize, files.length - startPos);
|
||||
if (len !== 0) {
|
||||
if (len > 0) {
|
||||
workerConfigs[i].tasks.push({
|
||||
runner: runner.kind(),
|
||||
files: files.slice(startPos, startPos + len)
|
||||
@@ -214,5 +214,5 @@ else {
|
||||
}
|
||||
if (!runUnitTests) {
|
||||
// patch `describe` to skip unit tests
|
||||
describe = <any>describe.skip;
|
||||
}
|
||||
describe = <any>(function () { });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user