Skip to content

Commit 093cf17

Browse files
DimStar77anonrig
authored andcommitted
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: nodejs#50364 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Richard Lau <[email protected]>
1 parent fa8f0dd commit 093cf17

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
@@ -62,7 +62,7 @@ assert.match(process.versions.brotli, commonTemplate);
6262
assert.match(process.versions.llhttp, commonTemplate);
6363
assert.match(process.versions.node, commonTemplate);
6464
assert.match(process.versions.uv, commonTemplate);
65-
assert.match(process.versions.zlib, /^\d+(?:\.\d+){2,3}(?:-.*)?$/);
65+
assert.match(process.versions.zlib, /^\d+(?:\.\d+){1,3}(?:-.*)?$/);
6666

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

0 commit comments

Comments
 (0)