From a6a05e8a88a6acd705a0b0508fcfbfcad80f02c1 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Thu, 2 Nov 2023 11:53:21 +0100 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/50364 Reviewed-By: Luigi Pinca Reviewed-By: Richard Lau --- test/parallel/test-process-versions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-process-versions.js b/test/parallel/test-process-versions.js index 31886093df8cc2..1a4f6fbff07ea9 100644 --- a/test/parallel/test-process-versions.js +++ b/test/parallel/test-process-versions.js @@ -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);