summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Bjorn Lu <bjornlu.dev@gmail.com> 2023-06-12 21:51:20 +0800
committerGravatar GitHub <noreply@github.com> 2023-06-12 21:51:20 +0800
commit807f46791dadded488bfa5caf5fa97a2a286dfe9 (patch)
tree878beef553ff0b7e4c63528a8aff4c6e6b5af2c0
parent718cebd52667d15719763d66b37c9ac4890fcb74 (diff)
downloadastro-807f46791dadded488bfa5caf5fa97a2a286dfe9.tar.gz
astro-807f46791dadded488bfa5caf5fa97a2a286dfe9.tar.zst
astro-807f46791dadded488bfa5caf5fa97a2a286dfe9.zip
Increase parallel test time tolerance (#7372)squeal
-rw-r--r--packages/astro/test/parallel.js6
1 files 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'
);
});