Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/__tests__/feedback.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import { memoryOperation, sessionFixture } from './fixtures/auth-fixture.js';

const examples = JSON.parse(fs.readFileSync(new URL('./fixtures/feedback-v1.json', import.meta.url)));
const root = fileURLToPath(new URL('../../', import.meta.url));
// Preference retries wait 1 + 2 + 4 seconds; leave process startup and shutdown headroom.
const CLI_TIMEOUT_MS = 15000;
const dirs = [], servers = [];
afterEach(async () => {
vi.unstubAllGlobals();
Expand Down Expand Up @@ -56,7 +58,7 @@ async function harness(responses, { keySource = 'env' } = {}) {
});
let stdout = '', stderr = '';
child.stdout.on('data', chunk => stdout += chunk); child.stderr.on('data', chunk => stderr += chunk);
const timer = setTimeout(() => { child.kill(); reject(new Error('CLI fixture timed out')); }, 10000);
const timer = setTimeout(() => { child.kill(); reject(new Error('CLI fixture timed out')); }, CLI_TIMEOUT_MS);
child.on('error', reject);
child.on('close', code => { clearTimeout(timer); resolve({ code, stdout, stderr }); });
});
Expand Down
Loading