Skip to content

Commit 580c320

Browse files
committed
chore: increase test timeouts
1 parent 86d65c7 commit 580c320

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@
4747
},
4848
"scripts": {
4949
"lint": "eslint \"*/*.js\" \"test/**/*.js\" \".github/**/*.js\"",
50-
"test": "cross-env NODE_GYP_NULL_LOGGER=true mocha --timeout 15000 test/test-download.js test/test-*"
50+
"test": "cross-env NODE_GYP_NULL_LOGGER=true mocha --timeout 30000 test/test-download.js test/test-*"
5151
}
5252
}

test/test-install.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ describe('install', function () {
6363
})
6464

6565
afterEach(async () => {
66-
await rm(prog.devDir, { recursive: true, force: true, maxRetries: 3 })
66+
await rm(prog.devDir, { recursive: true, force: true, maxRetries: 3, retryDelay: 1000 })
6767
prog = null
6868
})
6969

@@ -74,11 +74,11 @@ describe('install', function () {
7474
}
7575

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

0 commit comments

Comments
 (0)