Skip to content

Make Worker tests CLI friendly - #336

Open
kmiller68 wants to merge 1 commit into
WebKit:mainfrom
kmiller68:workers-tests-in-cli
Open

kmiller68 wants to merge 1 commit into
WebKit:mainfrom
kmiller68:workers-tests-in-cli

Conversation

@kmiller68

Copy link
Copy Markdown
Contributor

This consists of two changes:

  1. Don't error when running bomb-workers from the CLI.
  2. Don't tear-down Workers in segmentation on a 1s timeout. Instead
    add a validate() hook that terminates all the workers and clears the
    set. Since v8 doesn't respect the timeout value passed to
    setTimeout this caused crazy behavior there.

It's still necessary to pass --tag=Default to run Worker tests in the
CLI as Worker isn't supported in sm.

This consists of two changes:
1) Don't error when running bomb-workers from the CLI.
2) Don't tear-down Workers in segmentation on a 1ms timeout. Instead
   add a validate() hook that terminates all the workers and clears the
   set.

It's still necessary to pass `--tag=Default` to run Worker tests in
the CLI as `Worker` isn't supported in `sm`.
@netlify

netlify Bot commented Dec 1, 2026

Copy link
Copy Markdown

👷 Deploy request for webkit-jetstream-preview pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 9051d76

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant