Skip to content

Commit e2a1d11

Browse files
committed
Increase cdxgen test timeout
1 parent 0077525 commit e2a1d11

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/constants.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,14 +258,13 @@ const lazyNodeHardenFlags = () =>
258258
'--disable-proto',
259259
'delete',
260260
// Lazily access constants.WIN32.
261-
constants.WIN32
262-
? // We have contributed the following patches to our dependencies to make
261+
...(constants.WIN32
262+
? []
263+
: // We have contributed the following patches to our dependencies to make
263264
// Node's --frozen-intrinsics workable.
264265
// √ https://github.com/SBoudrias/Inquirer.js/pull/1683
265266
// √ https://github.com/pnpm/components/pull/23
266-
['--frozen-intrinsics']
267-
: [],
268-
'--no-deprecation'
267+
['--frozen-intrinsics', '--no-deprecation']),
269268
]
270269

271270
const lazyRootBinPath = () =>

test/socket-cdxgen.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ describe('Socket cdxgen command', async () => {
2727
it(
2828
'should forwards known commands to cdxgen',
2929
{
30-
// Takes ~10s in CI
31-
timeout: 20_000
30+
// Takes ~120s in CI
31+
timeout: 120_000
3232
},
3333
async () => {
3434
for (const command of ['-h', '--help']) {

0 commit comments

Comments
 (0)