Files
next.js/test/e2e/app-dir/app-fetch-deduping-errors/app-fetch-deduping-errors.test.ts
Zack TannerandGitHub 94bda4995e fix fetch lock not being consistently released (#74623)
When we acquire a lock on a fetch, and the fetch errors, we weren't
resolving the lock. This meant a subsequent request would stall waiting
to acquire a lock and prevent the page from rendering.

An example of this is a fetch with force-cache in `generateMetadata` and
another in the RSC where both requests encounter a fetch error.

Fixes #74613
2025-01-07 19:38:07 -08:00

14 lines
383 B
TypeScript

import { nextTestSetup } from 'e2e-utils'
describe('app-fetch-errors', () => {
const { next } = nextTestSetup({
files: __dirname,
})
it('should still successfully render when a fetch request that acquires a cache lock errors', async () => {
const browser = await next.browser('/1')
expect(await browser.elementByCss('body').text()).toBe('Hello World 1')
})
})