qwen-code/integration-tests/interactive
易良 5919968763
fix(cron): add deterministic test seam for cron-interactive E2E (#6987)
* feat(cron): add deterministic test seam for cron-interactive E2E

Add forceFireJob(id) method and QWEN_CODE_TEST_CRON_FAST env var to
CronScheduler. When enabled, newly created session-only jobs auto-fire
after 5s (configurable via QWEN_CODE_TEST_CRON_DELAY_MS) instead of
waiting up to 60s for the wall-clock minute boundary.

This removes the timing-flakiness from cron-interactive.test.ts
without changing any production behavior (seam is env-gated and
inactive by default).

Refs #6982

* test(cron): use QWEN_CODE_TEST_CRON_FAST seam, reduce timeouts to 30s

Enable the CronScheduler test seam in cron-interactive tests via
QWEN_CODE_TEST_CRON_FAST=1 in makeEnv(). This makes newly created
cron jobs auto-fire after 5s instead of waiting for the wall-clock
minute boundary.

Reduce all waitForScreen timeouts from 90s to 30s since the fire is
now deterministic (~5s after job creation + model round-trip).

Refs #6982
2026-07-15 17:39:15 +00:00
..
context-compress-interactive.test.ts feat(core,cli): auto-compact follow-up — /compress instructions, PreCompact hook plumb, plan/subagent attachments (#4688) 2026-06-03 09:23:00 +08:00
cron-interactive.test.ts fix(cron): add deterministic test seam for cron-interactive E2E (#6987) 2026-07-15 17:39:15 +00:00
ctrl-c-exit.test.ts refactor(tests): reorganize integration tests by execution mode 2026-03-29 05:49:17 +00:00
file-system-interactive.test.ts refactor(tests): reorganize integration tests by execution mode 2026-03-29 05:49:17 +00:00
hooks-command.test.ts refactor(tests): reorganize integration tests by execution mode 2026-03-29 05:49:17 +00:00
interactive-session.ts feat(core): enable loop/cron tools by default (#4950) 2026-06-10 23:21:53 +08:00
mixed-input-crash.test.ts refactor(tests): reorganize integration tests by execution mode 2026-03-29 05:49:17 +00:00
protocol-tags-interactive.test.ts fix(core): retry leaked protocol turns in recovery paths (#6683) 2026-07-11 04:57:34 +00:00