Skip to content

Commit 73ec0f7

Browse files
isaacsruyadorno
authored andcommittedJan 7, 2021
Skip known-bad test on old Node.js versions
1 parent bfa1f24 commit 73ec0f7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎test/unpack.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -2529,7 +2529,10 @@ t.test('trying to unpack a non-zlib gzip file should fail', t => {
25292529
new Unpack(opts)
25302530
.once('error', er => t.match(er, expect, 'async emits'))
25312531
.end(dataGzip)
2532-
t.throws(() => new UnpackSync(opts).end(dataGzip), expect, 'sync throws')
2532+
const skip = !/^v([0-9]|1[0-3])\./.test(process.version) ? false
2533+
: 'node prior to v14 did not raise sync zlib errors properly'
2534+
t.throws(() => new UnpackSync(opts).end(dataGzip),
2535+
expect, 'sync throws', {skip})
25332536
})
25342537

25352538
t.test('bad archive if no gzip', t => {

0 commit comments

Comments
 (0)
Please sign in to comment.