Skip to content

test: only fail max-listener checks on max-listener warnings#5253

Open
trivikr wants to merge 1 commit intonodejs:mainfrom
trivikr:test-client-write-max-listeners
Open

test: only fail max-listener checks on max-listener warnings#5253
trivikr wants to merge 1 commit intonodejs:mainfrom
trivikr:test-client-write-max-listeners

Conversation

@trivikr
Copy link
Copy Markdown
Member

@trivikr trivikr commented May 7, 2026

This relates to...

Fixes: #5211

Rationale

The max-listener tests are intended to fail when a MaxListenersExceededWarning is emitted. They were also failing on unrelated process warnings that did not contain ExperimentalWarning, which made the tests brittle when run alongside other test files.

Changes

Narrow warning checks in max-listener-focused tests to only fail on MaxListenersExceededWarning.

Features

N/A

Bug Fixes

N/A

Breaking Changes and Deprecations

N/A

Status

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.27%. Comparing base (01122da) to head (e6516f6).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5253      +/-   ##
==========================================
- Coverage   93.27%   93.27%   -0.01%     
==========================================
  Files         110      110              
  Lines       36366    36366              
==========================================
- Hits        33922    33921       -1     
- Misses       2444     2445       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 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.

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.

[flaky] test\client-write-max-listeners.js

2 participants