Files
Kilo-Org_kilocode/packages/opencode/test/mcp
Marius f392debf0f fix(cli): serialize OAuth callback port tests (#9870)
* fix(cli): serialize OAuth callback port tests

* fix(cli): close MCP OAuth browser test listener race

The mock subprocess emitted its error via setTimeout(10ms), which raced the error listener attachment on slow Windows CI and left BrowserOpenFailed unpublished. Emit on newListener('error') via a microtask so the listener is always attached first. Revert the unrelated test-runner serialization.

* fix(cli): deliver MCP OAuth mock error to listener directly

Override subprocess.on in the mock so the error is queued to the registered listener as soon as it attaches. The previous newListener + emit chain still lost events on slow Windows CI because EventEmitter dispatch can race microtask draining.
2026-05-05 11:04:53 +02:00
..
2026-04-21 18:03:34 +02:00