Skip to content

Commit be165aa

Browse files
committed
test: increase timeout for git test on Windows
Increases timeout from 10s to 30s for the 'should work with a temporary git repository' test to prevent timeouts on slower Windows CI runners.
1 parent 3bfe3e7 commit be165aa

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

test/unit/git-extended.test.mts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ describe('git extended tests', () => {
206206
await runWithTempDir(async tmpDir => {
207207
// Initialize a git repo
208208
spawnSync('git', ['init'], { cwd: tmpDir })
209-
spawnSync('git', ['config', 'user.name', 'Test User'], { cwd: tmpDir })
209+
spawnSync('git', ['config', 'user.name', 'Test User'], {
210+
cwd: tmpDir,
211+
})
210212
spawnSync('git', ['config', 'user.email', 'test@example.com'], {
211213
cwd: tmpDir,
212214
})
@@ -264,7 +266,7 @@ describe('git extended tests', () => {
264266
const isChangedAfter = await isChanged(testFile, { cwd: tmpDir })
265267
expect(typeof isChangedAfter).toBe('boolean')
266268
}, 'git-ops-')
267-
})
269+
}, 30_000)
268270

269271
it('should detect untracked files', async () => {
270272
await runWithTempDir(async tmpDir => {

0 commit comments

Comments
 (0)