Skip to content

Commit

Permalink
add a timeout for yarn pnp tests
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Dec 8, 2022
1 parent 0829d74 commit 2ec1f5b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/test-yarnpnp.js
Expand Up @@ -77,5 +77,11 @@ function runTests() {
run('node out-wasm-yarn.js')
}

const minutes = 10
setTimeout(() => {
console.error(`❌ Yarn PnP tests timed out after ${minutes} minutes`)
process.exit(1)
}, minutes * 60 * 1000)

reinstallYarnIfNeeded()
runTests()

0 comments on commit 2ec1f5b

Please sign in to comment.