Merge pull request #9428 from Microsoft/runtests-parallel-skips-empty-buckets

runtests-parallel skips empty buckets
This commit is contained in:
Nathan Shively-Sanders
2016-07-07 08:26:26 -07:00
committed by GitHub

View File

@@ -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 () { });
}