diff --git a/test/parallel/test-process-versions.js b/test/parallel/test-process-versions.js index f706bd060b45ff..31886093df8cc2 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, commonTemplate); +assert.match(process.versions.zlib, /^\d+(?:\.\d+){2,3}(?:-.*)?$/); if (hasUndici) { assert.match(process.versions.undici, commonTemplate);