diff --git a/test/parallel/test-zlib.js b/test/parallel/test-zlib.js index 35fd2c946030..d7eb6bbf68ae 100644 --- a/test/parallel/test-zlib.js +++ b/test/parallel/test-zlib.js @@ -201,7 +201,11 @@ testKeys.forEach(common.mustCall((file) => { zlibPairs.forEach(common.mustCall((pair) => { const Def = pair[0]; const Inf = pair[1]; - const opts = { level, windowBits, memLevel, strategy }; + // Gzip requires windowBits >= 9; rejection of 8 is tested above. + if (Def === zlib.Gzip && windowBits === 8) { + return; + } + const opts = { level, windowBits, memLevel, strategy, chunkSize }; const def = new Def(opts); const inf = new Inf(opts);