Skip to content

test: ensure that the message event is fired - #59952

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
lpinca:fix/test-worker-message-port-infinite-message-loop
Oct 5, 2025
Merged

test: ensure that the message event is fired#59952
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
lpinca:fix/test-worker-message-port-infinite-message-loop

Conversation

@lpinca

Copy link
Copy Markdown
Member

Use common.mustCallAtLeast() to verify that the 'message' event is fired.

@nodejs-github-botnodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Sep 20, 2025
@lpinca

Copy link
Copy Markdown
MemberAuthor

Alternative to #59885.

@codecov

codecovBot commented Sep 20, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.45%. Comparing base (6f941fc) to head (097b5ed).
⚠️ Report is 33 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@## main #59952 +/- ##
==========================================
- Coverage 88.45% 88.45% -0.01% 
==========================================
Files 703 703 Lines 207826 207826 Branches 40030 40036 +6 ==========================================
- Hits 183842 183826 -16 - Misses 15973 15974 +1 - Partials 8011 8026 +15 

see 26 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment threadtest/parallel/test-worker-message-port-infinite-message-loop.js Outdated
@lpincalpinca added request-ci Add this label to start a Jenkins CI on a PR. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Sep 23, 2025
@github-actionsgithub-actionsBot added request-ci-failed An error occurred while starting CI via request-ci label, and manual interventon is needed. and removed request-ci Add this label to start a Jenkins CI on a PR. labels Sep 23, 2025
@github-actions

Copy link
Copy Markdown
Contributor
Failed to start CI
 ⚠ Commits were pushed since the last approving review:
⚠ - test: ensure that the message event is fired
⚠ - Update test/parallel/test-worker-message-port-infinite-message-loop.js
✘ Refusing to run CI on potentially unsafe PR
https://github.com/nodejs/node/actions/runs/17955820654

@aduh95aduh95 added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. and removed request-ci-failed An error occurred while starting CI via request-ci label, and manual interventon is needed. labels Sep 23, 2025
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Sep 23, 2025
@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@gurgundaygurgunday left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

Use `common.mustCallAtLeast()` to verify that the `'message'` event is
fired.
@lpinca
lpincaforce-pushed the fix/test-worker-message-port-infinite-message-loop branch from d4d9c67 to 097b5edCompareOctober 4, 2025 10:15
@lpinca

Copy link
Copy Markdown
MemberAuthor

Rebased, this needs new approvals.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@lpincalpinca added commit-queue Add this label to land a pull request using GitHub Actions. and removed commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Oct 5, 2025
@lpinca

lpinca commented Oct 5, 2025

Copy link
Copy Markdown
MemberAuthor

It seems that #59885 was merged. I'll open a new PR to revert it.

@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Oct 5, 2025
lpinca added a commit to lpinca/node that referenced this pull request Oct 5, 2025
@nodejs-github-bot
nodejs-github-bot merged commit 307eaca into nodejs:mainOct 5, 2025
56 checks passed
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 307eaca

@lpinca
lpinca deleted the fix/test-worker-message-port-infinite-message-loop branch October 5, 2025 16:10
targos pushed a commit that referenced this pull request Oct 6, 2025
Use `common.mustCallAtLeast()` to verify that the `'message'` event is
fired.
PR-URL: #59952
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
nodejs-github-bot pushed a commit that referenced this pull request Oct 13, 2025
This reverts commit 9790315.
Refs: #59952
PR-URL: #60126
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
aduh95 pushed a commit that referenced this pull request Oct 22, 2025
Use `common.mustCallAtLeast()` to verify that the `'message'` event is
fired.
PR-URL: #59952
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
aduh95 pushed a commit that referenced this pull request Oct 31, 2025
This reverts commit 9790315.
Refs: #59952
PR-URL: #60126
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
aduh95 pushed a commit that referenced this pull request Nov 7, 2025
This reverts commit 9790315.
Refs: #59952
PR-URL: #60126
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.needs-ciPRs that need a full CI run.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@lpinca@nodejs-github-bot@aduh95@jakecastelli@gurgunday