extend opencode discovery timeout, include integration tests in pnpm test
This commit is contained in:
parent
f73aebe634
commit
dd21054f48
|
|
@ -64,3 +64,7 @@ CLAUDE.md
|
|||
AGENTS.md
|
||||
.claude/
|
||||
.opencode/
|
||||
|
||||
# OS-specific files
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ import { safeJsonParse } from "./utils/validation.js";
|
|||
import { resolveAgentSelection, resolveSessionRole } from "./agent-selection.js";
|
||||
|
||||
const execFileAsync = promisify(execFile);
|
||||
const OPENCODE_DISCOVERY_TIMEOUT_MS = 2_000;
|
||||
const OPENCODE_DISCOVERY_TIMEOUT_MS = 10_000;
|
||||
const OPENCODE_INTERACTIVE_DISCOVERY_TIMEOUT_MS = 10_000;
|
||||
|
||||
function errorIncludesSessionNotFound(err: unknown): boolean {
|
||||
|
|
@ -1487,7 +1487,7 @@ export function createSessionManager(deps: SessionManagerDeps): OpenCodeSessionM
|
|||
|
||||
let enrichTimeoutId: ReturnType<typeof setTimeout> | null = null;
|
||||
const enrichTimeout = new Promise<void>((resolve) => {
|
||||
enrichTimeoutId = setTimeout(resolve, 2_000);
|
||||
enrichTimeoutId = setTimeout(resolve, 10_000);
|
||||
});
|
||||
const enrichPromise = ensureHandleAndEnrich(
|
||||
session,
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
"description": "Integration tests — requires real binaries and tmux",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"test": "echo 'Skipped — run test:integration instead'",
|
||||
"test": "vitest run --config vitest.config.ts",
|
||||
"test:integration": "vitest run --config vitest.config.ts",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue