Skip to content

Commit 7856109

Browse files
committed
fix(archives): add 15s timeout to Windows-slow archive tests
- Windows runners are slower at file I/O operations - Tests were timing out at 10s but completing at ~11s - Added 15s timeout to: tar.gz extraction, path validation tests
1 parent 8ed464d commit 7856109

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/unit/archives.test.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ describe('archives', () => {
453453
const file1 = await fs.readFile(path.join(tempDir, 'file1.txt'), 'utf8')
454454
expect(file1).toBe('targz-content1')
455455
}, 'extractArchive-targz-')
456-
})
456+
}, 15_000)
457457

458458
it('should support strip option with auto-detection', async () => {
459459
await runWithTempDir(async tempDir => {
@@ -507,7 +507,7 @@ describe('archives', () => {
507507
const files = await fs.readdir(extractDir, { recursive: true })
508508
expect(files).toContain('etc')
509509
}, 'security-path-normalized-zip-')
510-
})
510+
}, 15_000)
511511

512512
it('should validate extracted paths stay within base directory', async () => {
513513
await runWithTempDir(async tempDir => {
@@ -526,7 +526,7 @@ describe('archives', () => {
526526
)
527527
expect(content).toBe('content')
528528
}, 'security-path-validation-zip-')
529-
})
529+
}, 15_000)
530530
})
531531

532532
describe('zip bomb protection', () => {

0 commit comments

Comments
 (0)