Unverified Commit 2722876e authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Add delay before exiting tests for log flushing (#39302)

parent 699564b2
...@@ -37,7 +37,10 @@ const cleanUpAndExit = async (code) => { ...@@ -37,7 +37,10 @@ const cleanUpAndExit = async (code) => {
await fs.remove(process.env.NEXT_TEST_STARTER) await fs.remove(process.env.NEXT_TEST_STARTER)
} }
console.log(`exiting with code ${code}`) console.log(`exiting with code ${code}`)
process.exit(code)
setTimeout(() => {
process.exit(code)
}, 1)
} }
async function getTestTimings() { async function getTestTimings() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment