Skip to content

Commit f70a2dd

Browse files
DimStar77targos
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: #50364 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
1 parent d24de12 commit f70a2dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-process-versions.js

+1-1
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)