Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
},
"scripts": {
"lint": "eslint \"*/*.js\" \"test/**/*.js\" \".github/**/*.js\"",
"test": "cross-env NODE_GYP_NULL_LOGGER=true mocha --timeout 15000 test/test-download.js test/test-*"
"test": "cross-env NODE_GYP_NULL_LOGGER=true mocha --timeout 30000 test/test-download.js test/test-*"
}
}
8 changes: 4 additions & 4 deletions test/test-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('install', function () {
})

afterEach(async () => {
await rm(prog.devDir, { recursive: true, force: true, maxRetries: 3 })
await rm(prog.devDir, { recursive: true, force: true, maxRetries: 3, retryDelay: 1000 })
prog = null
})

Expand All @@ -74,11 +74,11 @@ describe('install', function () {
}

return it(name, async function () {
this.timeout(platformTimeout(2, { win32: 20 }))
this.timeout(platformTimeout(4, { win32: 20 }))
await fn.call(this)
const expectedDir = path.join(prog.devDir, process.version.replace(/^v/, ''))
await rm(expectedDir, { recursive: true, force: true, maxRetries: 3 })
await Promise.all(new Array(10).fill(0).map(async (_, i) => {
await rm(expectedDir, { recursive: true, force: true, maxRetries: 3, retryDelay: 1000 })
await Promise.all(new Array(5).fill(0).map(async (_, i) => {
const title = `${' '.repeat(8)}${name} ${(i + 1).toString().padEnd(2, ' ')}`
console.log(`${title} : Start`)
console.time(title)
Expand Down