Parcourir la source

test: give hook locator checks loaded-runner headroom

Yichen Jiang il y a 3 mois
Parent
commit
dfcc93da76

+ 1 - 1
packages/hooks/hooks-claude/tests/coverage.spec.ts

@@ -78,7 +78,7 @@ describe('hooks-claude coverage — config option arms + substitution + skip war
     const located = await capture(dir())
     expect(located.payload.transcript_path).toBe(located.expected)
     expect((await capture()).payload.transcript_path).toBe('')
-  })
+  }, 15_000) // Two real agent/hook subprocess loops need loaded pre-push runner headroom.
 
   it('honors pluginRoot + projectDir substitution and warns on a skipped non-command hook', async () => {
     const d = dir()

+ 1 - 1
packages/hooks/hooks-codex/tests/coverage.spec.ts

@@ -71,7 +71,7 @@ describe('hooks-codex coverage — decision mapping paths', () => {
     const located = await capture(dir())
     expect(located.payload.transcript_path).toBe(located.expected)
     expect((await capture()).payload.transcript_path).toBeNull()
-  })
+  }, 15_000) // Two real agent/hook subprocess loops need loaded pre-push runner headroom.
 
   it('UserPromptSubmit block (exit 2) → rejected turn; default reason on empty stderr', async () => {
     const d = dir()