Stabilize flakey edge-module-error test (#60728)
x-ref: https://github.com/vercel/next.js/actions/runs/7524452333/job/20539227674?pr=60651 x-ref: https://github.com/vercel/next.js/actions/runs/7541852582/job/20536776104?pr=60707 Closes NEXT-2117
This commit is contained in:
parent
dc394483b8
commit
f668ab580b
1 changed files with 5 additions and 5 deletions
|
@ -11,6 +11,7 @@ import {
|
|||
launchApp,
|
||||
nextBuild,
|
||||
nextStart,
|
||||
retry,
|
||||
} from 'next-test-utils'
|
||||
import {
|
||||
appOption,
|
||||
|
@ -89,16 +90,15 @@ describe('Edge runtime code with imports', () => {
|
|||
context.appPort,
|
||||
appOption
|
||||
)
|
||||
const res = await fetchViaHTTP(context.appPort, url)
|
||||
expect(res.status).toBe(500)
|
||||
await check(async () => {
|
||||
await retry(async () => {
|
||||
const res = await fetchViaHTTP(context.appPort, url)
|
||||
expect(res.status).toBe(500)
|
||||
expectUnsupportedModuleDevError(
|
||||
moduleName,
|
||||
importStatement,
|
||||
await res.text()
|
||||
)
|
||||
return 'success'
|
||||
}, 'success')
|
||||
})
|
||||
})
|
||||
})
|
||||
;(process.env.TURBOPACK ? describe.skip : describe)(
|
||||
|
|
Loading…
Reference in a new issue