Skip to content

Commit ee7ec8d

Browse files
committed
Add test timeout increase for Windows
1 parent 94446fc commit ee7ec8d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/commands/fix/cmd-fix.test.mts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ async function revertFixtureChanges() {
4242

4343
describe('socket fix', async () => {
4444
const { binCliPath } = constants
45+
// Increase timeout for CI environments and Windows where operations can be slower.
46+
const testTimeout = constants.ENV.CI || constants.WIN32 ? 60_000 : 30_000
4547

4648
beforeAll(async () => {
4749
// Ensure fixtures are in clean state before tests.
@@ -405,6 +407,7 @@ describe('socket fix', async () => {
405407
)
406408
expect(code, 'should exit with non-zero code').not.toBe(0)
407409
},
410+
{ timeout: testTimeout },
408411
)
409412

410413
cmdit(
@@ -420,6 +423,7 @@ describe('socket fix', async () => {
420423
)
421424
expect(code, 'should exit with non-zero code').not.toBe(0)
422425
},
426+
{ timeout: testTimeout },
423427
)
424428

425429
cmdit(
@@ -729,6 +733,7 @@ describe('socket fix', async () => {
729733
)
730734
expect(code).toBeGreaterThan(0)
731735
},
736+
{ timeout: testTimeout },
732737
)
733738

734739
cmdit(
@@ -742,6 +747,7 @@ describe('socket fix', async () => {
742747
)
743748
expect(code).toBeGreaterThan(0)
744749
},
750+
{ timeout: testTimeout },
745751
)
746752

747753
cmdit(

0 commit comments

Comments
 (0)