Skip to content
Source
Sign inSign up
pingdotgg/t3code

test(web): isolate diff worker idle clock #22259

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/22259/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

The release test job timed out in the diff worker lifecycle test after reporting a worker initialization timeout. The test used fake timers for both real worker startup and the 30-second idle expiry check, so advancing the idle clock could also expire worker startup.

Keep real timers while workers initialize and highlight. Enable fake timers only for the idle expiry assertions and the test that deliberately holds initialization. Cleanup still advances the idle timer to release each pool.

Validation: all 9 tests in StyledDiffCodeView.browser.test.tsx pass in headless Chromium; web typecheck, targeted lint, and formatting pass.

Created with GPT-6.1 Sol in Codex.

Sign in to join this conversation.