test: first attempt for flaky fix by metcoder95 · Pull Request #2337 · nodejs/undici (original) (raw)

Conversation

@metcoder95

This relates to...

Fixes #2321

Rationale

A race condition seems to happen between the server response and the assertion for it few lines after. This is a very rare condition, but it happens. This PR fixes it by waiting for the response to be fully read before asserting it.

Changes

Features

Bug Fixes

Breaking Changes and Deprecations

Status

@metcoder95

@codecov-commenter

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.83%. Comparing base (e39a632) to head (c355316).
⚠️ Report is 1303 commits behind head on main.

Additional details and impacted files

@@ Coverage Diff @@ ## main #2337 +/- ##

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

🚀 New features to boost your workflow:

@metcoder95

It seems to solve the issue, but running the whole suite once more to verify

@mcollina

Windows seems to be failing still

@KhafraDev

windows is failing on the WPTs for The syntax of the command is incorrect....

@metcoder95

@metcoder95

@metcoder95

Tests seem stable, failures are either redirect, windows WPTs, and now npm ECONNRESET

mcollina

Choose a reason for hiding this comment

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

lgtm

kodiakhq Bot referenced this pull request in X-oss-byte/Canary-nextjs

Oct 21, 2023

@renovate

kodiakhq Bot referenced this pull request in X-oss-byte/Nextjs

Oct 21, 2023

@renovate

kodiakhq Bot referenced this pull request in ascorbic/unpic-img

Nov 12, 2023

@renovate

renovate Bot referenced this pull request in specfy/specfy

Nov 21, 2023

@renovate

gr2m referenced this pull request in octokit/rest.js

Dec 5, 2023

@renovate

crysmags pushed a commit to crysmags/undici that referenced this pull request

Feb 27, 2024

@metcoder95 @crysmags

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})