qwen-code/integration-tests/sdk-typescript
qwen-code-dev-bot 506ce0a1a4
fix(test): widen model-response timeouts in SDK E2E tests for CI stability (#6979) (#6985)
* fix(test): widen model-response timeouts in SDK E2E tests for CI stability (#6979)

The 'should handle control responses when stdin closes before replies'
test armed 30 s boundedPromise timeouts for all four phases of a
two-turn model interaction. On shared Linux CI runners a single model
round-trip routinely exceeds 30 s, exhausting every retry.

The permission-control suite used a flat TEST_TIMEOUT = 30 000 ms
across 23 real-API test cases, and two tests hardcoded 40 000 ms
timeouts instead of the shared constant.

- Raise all four boundedPromise timeouts to 60 s in the stdin-close
  test so each phase can absorb a slow model round-trip.
- Make TEST_TIMEOUT CI-aware (60 s on CI, 30 s locally) and route the
  two hardcoded 40 s values through it for consistency.

* fix(test): use CI-conditional phase timeouts in abort-and-lifecycle E2E (#6985)

Apply the same CI-conditional pattern (60s on CI, 30s locally) used by
permission-control.test.ts to the stdin-close test's four boundedPromise
calls. Local developers no longer wait the full CI-grade 60s per phase.

---------

Co-authored-by: Shaojin Wen <shaojin.wensj@alibaba-inc.com>
2026-07-16 00:06:26 +00:00
..
abort-and-lifecycle.test.ts fix(test): widen model-response timeouts in SDK E2E tests for CI stability (#6979) (#6985) 2026-07-16 00:06:26 +00:00
configuration-options.test.ts Add chat recording toggle (CLI + settings) and disable recording in tests 2025-12-15 13:48:38 +08:00
mcp-server.test.ts ci(e2e): stabilize MCP/CLI flows and cancel stale main runs (#4039) 2026-05-12 16:09:30 +08:00
message-event-pairing.test.ts Fix SDK message event pairing and improve content block handling 2026-03-18 18:10:23 +08:00
multi-turn.test.ts test(sdk): simplify integration tests for reliability 2026-03-16 11:23:57 +08:00
permission-control.test.ts fix(test): widen model-response timeouts in SDK E2E tests for CI stability (#6979) (#6985) 2026-07-16 00:06:26 +00:00
sdk-mcp-server.test.ts fix: sdk mcp tests 2026-02-09 11:54:20 +08:00
session-id.test.ts fix: sandbox user permission in integration tests 2026-02-15 11:02:32 +08:00
single-turn.test.ts test: stabilize main e2e flakes (#3992) 2026-05-10 21:50:04 +08:00
subagents.test.ts test(e2e): stabilize tool control and subagent cases (#6803) 2026-07-13 07:47:41 +00:00
system-control.test.ts fix(test): count result messages instead of assistant messages in multi-model E2E test (#4341) 2026-05-20 10:42:51 +08:00
test-helper.ts test(sdk): add tool control pattern matching tests 2026-03-24 22:31:59 +08:00
tool-control.test.ts test(e2e): stabilize tool control and subagent cases (#6803) 2026-07-13 07:47:41 +00:00