Skip to content

Commit b288871

Browse files
committed
Attempt to resolve cdxgen test timeouts on Windows
1 parent 9839d88 commit b288871

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/commands/manifest/cdxgen-integration.test.mts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,18 @@ describe('Socket manifest cdxgen command', async () => {
2323
...process.env,
2424
...constants.processEnv,
2525
SOCKET_CLI_DEBUG: '1',
26+
// Disable cdxgen cache and network-dependent features that might be slow on Windows.
27+
CDXGEN_NO_CACHE: '1',
28+
CDXGEN_OFFLINE: '1',
2629
},
2730
}
2831

2932
it(
3033
'should forwards known commands to cdxgen',
3134
{
3235
// Increase timeout for CI environments where cdxgen downloads can be slow.
33-
timeout: 60_000,
36+
// Windows CI needs even more time due to slower filesystem operations.
37+
timeout: process.platform === 'win32' && constants.ENV.CI ? 120_000 : 60_000,
3438
},
3539
async () => {
3640
for (const command of ['-h', '--help']) {

0 commit comments

Comments
 (0)