Skip to content

test(core): abort the recorded run after spawning - #141

Merged
hannojg merged 1 commit into
mainfrom
hannojg/fix-run-cancellation-test
Nov 23, 2026
Merged

hannojg merged 1 commit into
mainfrom
hannojg/fix-run-cancellation-test

Conversation

@hannojg

@hannojg hannojg commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

The cancellation test added in #131 started a 20 ms timer while the runner was still setting up its workspace. On Windows the timer fired before the child process existed, so the test got an AbortError. Failing run

The fake spawner now queues the abort in a microtask. By the time it runs, the runner has registered its abort listener. The test checks that the child receives SIGTERM and that the run reports cancelled.

I reproduced the failure locally by delaying workspace creation by 100 ms. The updated test passes with the same delay.

@vercel

vercel Bot commented Nov 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
mobile-dev Ready Ready Preview Nov 23, 2026 3:57pm UTC

Request Review

@hannojg
hannojg marked this pull request as ready for review November 23, 2026 15:58
@hannojg
hannojg merged commit 36eb4d0 into main Nov 23, 2026
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant