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,
|
launchApp,
|
||||||
nextBuild,
|
nextBuild,
|
||||||
nextStart,
|
nextStart,
|
||||||
|
retry,
|
||||||
} from 'next-test-utils'
|
} from 'next-test-utils'
|
||||||
import {
|
import {
|
||||||
appOption,
|
appOption,
|
||||||
|
@ -89,16 +90,15 @@ describe('Edge runtime code with imports', () => {
|
||||||
context.appPort,
|
context.appPort,
|
||||||
appOption
|
appOption
|
||||||
)
|
)
|
||||||
const res = await fetchViaHTTP(context.appPort, url)
|
await retry(async () => {
|
||||||
expect(res.status).toBe(500)
|
const res = await fetchViaHTTP(context.appPort, url)
|
||||||
await check(async () => {
|
expect(res.status).toBe(500)
|
||||||
expectUnsupportedModuleDevError(
|
expectUnsupportedModuleDevError(
|
||||||
moduleName,
|
moduleName,
|
||||||
importStatement,
|
importStatement,
|
||||||
await res.text()
|
await res.text()
|
||||||
)
|
)
|
||||||
return 'success'
|
})
|
||||||
}, 'success')
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
;(process.env.TURBOPACK ? describe.skip : describe)(
|
;(process.env.TURBOPACK ? describe.skip : describe)(
|
||||||
|
|
Loading…
Reference in a new issue