Skip to content

Commit 5d01042

Browse files
authored
test: fix testsuite against zlib version 1.3
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: #50364 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
1 parent a1693c6 commit 5d01042

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-process-versions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ assert.match(process.versions.brotli, commonTemplate);
6161
assert.match(process.versions.llhttp, commonTemplate);
6262
assert.match(process.versions.node, commonTemplate);
6363
assert.match(process.versions.uv, commonTemplate);
64-
assert.match(process.versions.zlib, /^\d+(?:\.\d+){2,3}(?:-.*)?$/);
64+
assert.match(process.versions.zlib, /^\d+(?:\.\d+){1,3}(?:-.*)?$/);
6565

6666
if (hasUndici) {
6767
assert.match(process.versions.undici, commonTemplate);

0 commit comments

Comments
 (0)