remove logs
This commit is contained in:
parent
0f48469c96
commit
47fc364be7
|
|
@ -175,8 +175,6 @@ export function filterForShardFromTimingFile(timingFile: JSONReport, shard: { to
|
||||||
const shardsMapping = mapTestDetailsToShards(testDetails, shard);
|
const shardsMapping = mapTestDetailsToShards(testDetails, shard);
|
||||||
const testIds = shardsMapping[shard.current - 1].map(shardDetails => shardDetails.id);
|
const testIds = shardsMapping[shard.current - 1].map(shardDetails => shardDetails.id);
|
||||||
const recordedTests = testGroups.filter(group => testIds.includes(group.tests[0].id));
|
const recordedTests = testGroups.filter(group => testIds.includes(group.tests[0].id));
|
||||||
// console.log(shardsMapping);
|
|
||||||
// console.log(testDetails.length);
|
|
||||||
const result = new Set<TestGroup>();
|
const result = new Set<TestGroup>();
|
||||||
|
|
||||||
recordedTests.forEach(group => result.add(group));
|
recordedTests.forEach(group => result.add(group));
|
||||||
|
|
@ -258,9 +256,5 @@ function mapTestDetailsToShards(testDetails: testDetails[], shard: {total: numbe
|
||||||
sums[minIndex] += testDetailsObj.duration;
|
sums[minIndex] += testDetailsObj.duration;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let i = 0; i < shard.total; i++) {
|
|
||||||
console.log(`Total duration for array ${i + 1}: ${sums[i]}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue