Skip to content

test: deflake connect-timeout watchdog#5197

Open
mcollina wants to merge 1 commit intomainfrom
fix-5187-connect-timeout-flake
Open

test: deflake connect-timeout watchdog#5197
mcollina wants to merge 1 commit intomainfrom
fix-5187-connect-timeout-flake

Conversation

@mcollina
Copy link
Copy Markdown
Member

@mcollina mcollina commented May 5, 2026

Summary

  • deflake the connect-timeout tests by using a shared helper for Client and Pool
  • replace the aggressive 2s watchdog with a longer guard that matches FastTimer behavior and the extra Windows setImmediate hop
  • use test-scoped cleanup that tolerates an already-closed dispatcher

Testing

  • npx borp -p "test/connect-timeout.js"
  • npx eslint test/connect-timeout.js

Closes #5187

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.27%. Comparing base (9c12e26) to head (be6f49e).
⚠️ Report is 22 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5197      +/-   ##
==========================================
- Coverage   93.27%   93.27%   -0.01%     
==========================================
  Files         110      110              
  Lines       36241    36313      +72     
==========================================
+ Hits        33805    33870      +65     
- Misses       2436     2443       +7     

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

Comment thread test/connect-timeout.js
Copy link
Copy Markdown
Member

@metcoder95 metcoder95 left a comment

Choose a reason for hiding this comment

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

merge conflicts

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\connect-timeout.js

4 participants