This commit is contained in:
Sidharth Vinod
2024-01-26 01:05:59 +05:30
parent af53a968f6
commit 441deaffc9

View File

@@ -17,6 +17,11 @@ const getRuntimes = (csv: string): RunTimes => {
const [testName, timeTaken] = line.split(',');
if (testName && timeTaken) {
runtimes[testName] = Number(timeTaken);
// TODO: Add some variation to test logging. Should remove.
if (Math.random() < 0.3) {
runtimes[testName] *= Math.random() * 2;
}
}
}
return runtimes;