From 33a0184038ae7ba3f11722bd74fc005207e6fdbe Mon Sep 17 00:00:00 2001 From: SumanthMalisetty Date: Mon, 16 Sep 2024 11:50:20 +0530 Subject: [PATCH] max time uploaded --- lib/cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli.js b/lib/cli.js index f616e8c..1a76635 100755 --- a/lib/cli.js +++ b/lib/cli.js @@ -69,7 +69,7 @@ async function start() { for (let [name, suite] of timeMap) { //The value of suite.tests is not what we expect. const nbTests = suite.passes + suite.pending + suite.failures; - totalDuration += suite.duration; + totalDuration = Math.max(totalDuration, suite.duration); totalTests += nbTests; totalPasses += suite.passes; totalPending += suite.pending;