Skip to content

Commit e880e35

Browse files
authored
ci: setting a timeout for testing on Mac (#561)
GitHub Actions seems to take as much time on a Mac as it does on Windows.
1 parent 329a410 commit e880e35

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/main.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ let program = {}
3939
let codeDirectory = lambda._codeDirectory()
4040

4141
const _timeout = function (params) {
42-
// Even if timeout is set for the whole test for Windows,
42+
// Even if timeout is set for the whole test for Windows and Mac,
4343
// if it is set in local it will be valid.
44-
// For Windows, do not set it with local.
45-
if (process.platform !== 'win32') {
44+
// For Windows and Mac, do not set it with local.
45+
if (!['win32', 'darwin'].includes(process.platform)) {
4646
params.this.timeout(params.sec * 1000)
4747
}
4848
}
@@ -130,8 +130,8 @@ const _awsRestore = () => {
130130

131131
/* global before, after, beforeEach, afterEach, describe, it */
132132
describe('lib/main', function () {
133-
if (process.platform === 'win32') {
134-
// It seems that it takes time for file operation in Windows.
133+
if (['win32', 'darwin'].includes(process.platform)) {
134+
// It seems that it takes time for file operation in Windows and Mac.
135135
// So set `timeout(60000)` for the whole test.
136136
this.timeout(60000)
137137
}

0 commit comments

Comments
 (0)