From 807f46791dadded488bfa5caf5fa97a2a286dfe9 Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Mon, 12 Jun 2023 21:51:20 +0800 Subject: [PATCH] Increase parallel test time tolerance (#7372) --- packages/astro/test/parallel.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/astro/test/parallel.js b/packages/astro/test/parallel.js index 2ad50f2d6..22b76eda0 100644 --- a/packages/astro/test/parallel.js +++ b/packages/astro/test/parallel.js @@ -21,15 +21,15 @@ describe('Component parallelization', () => { Number(element.children[0].data) ); - let renderStartWithin = Math.max(...startTimes) - Math.min(...startTimes); + const renderStartWithin = Math.max(...startTimes) - Math.min(...startTimes); expect(renderStartWithin).to.be.lessThan( - 10, // in theory, this should be 0, so 10ms tolerance + 40, // in theory, this should be 0, but add 40ms tolerance for CI "The components didn't start rendering in parallel" ); const totalRenderTime = Math.max(...finishTimes) - Math.min(...startTimes); expect(totalRenderTime).to.be.lessThan( - 60, // max component delay is 40ms + 80, // max component delay is 40ms, add 40ms tolerance for CI 'The total render time was significantly longer than the max component delay' ); });