Skip to content

Commit 8c758dd

Browse files
committed
test: file-level 30s timeout for the CLI menubar suite
Every case spawns the real CLI and does genuine multi-provider parse work; run #3 showed a second sibling crossing the 5s default on the shared runner. File-level cap replaces the earlier single-test one.
1 parent fe8b576 commit 8c758dd

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

tests/cli-status-menubar.test.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ import { tmpdir } from 'node:os'
33
import { delimiter as pathDelimiter, join } from 'node:path'
44
import { spawnSync } from 'node:child_process'
55

6-
import { describe, expect, it } from 'vitest'
6+
import { describe, expect, it, vi } from 'vitest'
7+
8+
// Every case here spawns the real CLI and does genuine multi-provider parse
9+
// work; the 5s default is fine on a dev laptop and not on a shared 2-core
10+
// runner, where individual cases have been observed needing 6-8s.
11+
vi.setConfig({ testTimeout: 30_000 })
712

813
function runCli(args: string[], home: string, extraEnv: Record<string, string | undefined> = {}) {
914
return spawnSync(process.execPath, ['--import', 'tsx', 'src/cli.ts', ...args], {
@@ -268,7 +273,7 @@ describe('codeburn status --format menubar-json', () => {
268273
} finally {
269274
await rm(home, { recursive: true, force: true })
270275
}
271-
}, 30_000)
276+
})
272277

273278
it('keeps idle Claude config options visible for the selected period', async () => {
274279
const home = await mkdtemp(join(tmpdir(), 'codeburn-menubar-claude-config-idle-'))

0 commit comments

Comments
 (0)