mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-04 21:23:07 +00:00
test: Update codex provider timeout calculation for feature generation
This commit is contained in:
@@ -325,8 +325,12 @@ describe('codex-provider.ts', () => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
const call = vi.mocked(spawnJSONLProcess).mock.calls[0][0];
|
const call = vi.mocked(spawnJSONLProcess).mock.calls[0][0];
|
||||||
// xhigh reasoning effort should have 4x the default timeout (120000ms)
|
// xhigh reasoning effort uses 5-minute base timeout (300000ms) for feature generation
|
||||||
expect(call.timeout).toBe(DEFAULT_TIMEOUT_MS * REASONING_TIMEOUT_MULTIPLIERS.xhigh);
|
// then applies 4x multiplier: 300000 * 4.0 = 1200000ms (20 minutes)
|
||||||
|
const CODEX_FEATURE_GENERATION_BASE_TIMEOUT_MS = 300000;
|
||||||
|
expect(call.timeout).toBe(
|
||||||
|
CODEX_FEATURE_GENERATION_BASE_TIMEOUT_MS * REASONING_TIMEOUT_MULTIPLIERS.xhigh
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('uses default timeout when no reasoning effort is specified', async () => {
|
it('uses default timeout when no reasoning effort is specified', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user