Skip to content

test(websocket): fully deflake send test#5236

Open
mcollina wants to merge 1 commit into
mainfrom
fix/websocket-send-flaky-5181-followup
Open

test(websocket): fully deflake send test#5236
mcollina wants to merge 1 commit into
mainfrom
fix/websocket-send-flaky-5181-followup

Conversation

@mcollina

@mcollina mcollina commented May 6, 2026

Copy link
Copy Markdown
Member

Description

  • finish deflaking test/websocket/send.js
  • await open, message, and close events deterministically with once(...)
  • register cleanup that waits for websocket client/server teardown before test exit
  • avoid the close-event race in Sending data after close by subscribing before closing

Follow-up to #5232
Related: #5181

Testing

  • npx borp -p "test/websocket/send.js"
  • repeated 50x npx borp -p "test/websocket/send.js"
  • npm run test:websocket
  • npm run lint

@codecov-commenter

codecov-commenter commented May 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.45%. Comparing base (c7c7e7f) to head (4c4004f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5236   +/-   ##
=======================================
  Coverage   93.45%   93.45%           
=======================================
  Files         110      110           
  Lines       37376    37376           
=======================================
  Hits        34928    34928           
  Misses       2448     2448           

☔ View full report in Codecov by Harness.
📢 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.

@mcollina mcollina requested a review from trivikr July 4, 2026 09:57
@mcollina mcollina force-pushed the fix/websocket-send-flaky-5181-followup branch from 871481e to 4c4004f Compare July 9, 2026 17:43
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.

3 participants