Skip to content

Commit

Permalink
test: fix testsuite against zlib version 1.3
Browse files Browse the repository at this point in the history
In the past, zlib versions had major.minor.micro formats, but with 1.3
this has been changed.

Change the test code to accept one, two, or three elements past the
major version.

PR-URL: nodejs/node#50364
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
  • Loading branch information
sercher committed Apr 24, 2024
1 parent eda1dd9 commit c6c86e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graal-nodejs/test/parallel/test-process-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ assert.match(process.versions.brotli, commonTemplate);
assert.match(process.versions.llhttp, commonTemplate);
assert.match(process.versions.node, commonTemplate);
assert.match(process.versions.uv, commonTemplate);
assert.match(process.versions.zlib, /^\d+(?:\.\d+){2,3}(?:-.*)?$/);
assert.match(process.versions.zlib, /^\d+(?:\.\d+){1,3}(?:-.*)?$/);

if (hasUndici) {
assert.match(process.versions.undici, commonTemplate);
Expand Down

0 comments on commit c6c86e6

Please sign in to comment.