From 441deaffc9828cacbcfb29df9ed78e243c76e8c5 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Fri, 26 Jan 2024 01:05:59 +0530 Subject: [PATCH] Test --- scripts/runTime.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/runTime.ts b/scripts/runTime.ts index f7c9822b2..a1dd18277 100644 --- a/scripts/runTime.ts +++ b/scripts/runTime.ts @@ -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;