Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
tests: fix destroy hanging for recent node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Feb 9, 2021
1 parent fcae950 commit d2fc450
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/api.destroy.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ describe 'API destroy', ->
parser.on 'error', (err) ->
err.message.should.eql 'Catch me'
parser._readableState.destroyed.should.be.true()
next() if /^v(14)\./.test process.version
version = parseInt /^v(\d+)/.exec(process.version)[1], 10
next() if version >= 14
parser.on 'end', ->
next()
generate length: 2, seed: 1, columns: 2, fixed_size: true
Expand Down

0 comments on commit d2fc450

Please sign in to comment.