Skip to content

Commit

Permalink
Add delay before exiting tests for log flushing (#39302)
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Aug 3, 2022
1 parent 699564b commit 2722876
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion run-tests.js
Expand Up @@ -37,7 +37,10 @@ const cleanUpAndExit = async (code) => {
await fs.remove(process.env.NEXT_TEST_STARTER)
}
console.log(`exiting with code ${code}`)
process.exit(code)

setTimeout(() => {
process.exit(code)
}, 1)
}

async function getTestTimings() {
Expand Down

0 comments on commit 2722876

Please sign in to comment.