Skip to content

chore: fix tests for zlib differences between node versions - #7040

Merged
wraithgar merged 1 commit into
latestfrom
gar/zlib-tests
Dec 1, 2023
Merged

chore: fix tests for zlib differences between node versions#7040
wraithgar merged 1 commit into
latestfrom
gar/zlib-tests

Conversation

@wraithgar

@wraithgarwraithgar commented Nov 30, 2023

Copy link
Copy Markdown
Contributor

Most of npm's tests are built around the fact that zlib is not deterministic, but it looks like for some small code paths it had been so far and those tests were still using static fixtures. Enough changed in the latest node version to force the remaining tests we have w/ shasum fixtures to fail.

Good explanation at nodejs/node#50138

@wraithgar
wraithgar requested a review from a team as a code ownerNovember 30, 2023 22:00
@wraithgar
wraithgar marked this pull request as draft November 30, 2023 22:01
Comment threadtest/fixtures/clean-snapshot.js Outdated
@wraithgar
wraithgar marked this pull request as ready for review December 1, 2023 16:05
@lukekarrys

Copy link
Copy Markdown
Contributor

Does this need to land first so other PRs will pass CI?

@wraithgar
wraithgar merged commit 4ba585c into latestDec 1, 2023
@wraithgar
wraithgar deleted the gar/zlib-tests branch December 1, 2023 17:29
@github-actionsgithub-actionsBot mentioned this pull request Dec 6, 2023
Sign up for freeto 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

@wraithgar@lukekarrys@hashtagchris