From 2eb7170456889f9cde6a05c1c729751a891d48db Mon Sep 17 00:00:00 2001 From: Camillo Bruni Date: Tue, 21 Jul 2026 17:27:27 +0200 Subject: [PATCH] fix-total --- resources/suite-runner.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/suite-runner.mjs b/resources/suite-runner.mjs index 899d11c59..ff8bbcbfa 100644 --- a/resources/suite-runner.mjs +++ b/resources/suite-runner.mjs @@ -104,7 +104,8 @@ export class SuiteRunner { // When the test is fast and the precision is low (for example with Firefox' // privacy.resistFingerprinting preference), it's possible that the measured // total duration for an entire is 0. - const { suiteTotal, suitePrepare } = this.#suiteResults.total; + const suiteTotal = this.#suiteResults.total; + const suitePrepare = this.#suiteResults.prepare; if (suiteTotal === 0) throw new Error(`Got invalid 0-time total for suite ${this.#suite.name}: ${suiteTotal}`); if (this.#params.measurePrepare && suitePrepare === 0) @@ -134,7 +135,7 @@ export class SuiteRunner { total: total, }; this.#suiteResults.prepare = this.#prepareTime; - this.#suiteResults.total = total; + this.#suiteResults.total += total; } async _updateClient(suite = this.#suite) {