mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
Fix prerender getStaticPaths flaky test (#7745)
This commit is contained in:
parent
da7f1128bf
commit
baaf80b27d
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue