Skip to content

Commit

Permalink
fix: Fix Linux test failures
Browse files Browse the repository at this point in the history
This fixes a failing socket cleanup test by destroying the request on
error.  This test did not fail on macOS.

Closes tomas#395
  • Loading branch information
joeyparrish committed Mar 22, 2022
1 parent 0a0ab60 commit a5adf33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/socket_cleanup_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('socket cleanup', function(){

stream.pipeline(resp, writable, function(err) {
err.code.should.eql('ERR_STREAM_PREMATURE_CLOSE')
// if (err) resp.request.destroy();
if (err) resp.request.destroy();
});

setTimeout(function() {
Expand All @@ -76,4 +76,4 @@ describe('socket cleanup', function(){

})

})
})

0 comments on commit a5adf33

Please sign in to comment.