Skip to content

test: fix snapshot testing flaky test#4410

Merged
mcollina merged 3 commits into
mainfrom
improve-snapshot-testing
Aug 13, 2025
Merged

test: fix snapshot testing flaky test#4410
mcollina merged 3 commits into
mainfrom
improve-snapshot-testing

Conversation

@Uzlopak

@Uzlopak Uzlopak commented Aug 12, 2025

Copy link
Copy Markdown
Contributor

@mcollina

Was there a reason to make _replaySnapshot async? Because it was asyncy it resulted in the flaky behaviour. Basically returning the snapshot was async so it was not ensured which response Body needed to be returned.

@Uzlopak Uzlopak force-pushed the improve-snapshot-testing branch from b654bf8 to fd1dcad Compare August 13, 2025 00:11

@mcollina mcollina 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

@mcollina mcollina merged commit c1442a4 into main Aug 13, 2025
33 checks passed
@Uzlopak Uzlopak deleted the improve-snapshot-testing branch August 13, 2025 08:56
@github-actions github-actions Bot mentioned this pull request Aug 17, 2025
slagiewka pushed a commit to slagiewka/undici that referenced this pull request Feb 14, 2026
* test: fix snapshot testing flaky test

* make _replaySnapshot sync
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.

2 participants