summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/test/ssr-prerender-get-static-paths.test.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/astro/test/ssr-prerender-get-static-paths.test.js b/packages/astro/test/ssr-prerender-get-static-paths.test.js
index 08e3060f0..391e7485d 100644
--- a/packages/astro/test/ssr-prerender-get-static-paths.test.js
+++ b/packages/astro/test/ssr-prerender-get-static-paths.test.js
@@ -59,7 +59,11 @@ describe('Prerender', () => {
await devServer.stop();
});
- it('only calls prerender getStaticPaths once', async () => {
+ it('only calls prerender getStaticPaths once', async function () {
+ // Sometimes this fail in CI as the chokidar watcher triggers an update and invalidates the route cache,
+ // causing getStaticPaths to be called twice. Workaround this with 2 retries for now.
+ this.retries(2);
+
let res = await fixture.fetch('/blog/a');
expect(res.status).to.equal(200);