Skip to content

Commit 355cacb

Browse files
committed
fix: Fix Linux test failures
This fixes a failing socket cleanup test by destroying the request on error. This test did not fail on macOS. Closes #395
1 parent 67ad8a4 commit 355cacb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/socket_cleanup_spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe('socket cleanup', function(){
6161

6262
stream.pipeline(resp, writable, function(err) {
6363
err.code.should.eql('ERR_STREAM_PREMATURE_CLOSE')
64-
// if (err) resp.request.destroy();
64+
if (err) resp.request.destroy();
6565
});
6666

6767
setTimeout(function() {
@@ -76,4 +76,4 @@ describe('socket cleanup', function(){
7676

7777
})
7878

79-
})
79+
})

0 commit comments

Comments
 (0)