From 211a37d13e096da198493755e4f5f2d9b7f77e0e Mon Sep 17 00:00:00 2001 From: Santiago Gimeno Date: Sat, 20 Feb 2016 22:37:13 +0100 Subject: [PATCH] test: fix flaky http-end-throw-socket-handling This test was sometimes failing on `OS X` because the internal timeout was fired before the test completed. The reason was that sometimes some of the connections were taking longer to be established. Removing the timeout seems to fix the issue. --- test/parallel/test-http-end-throw-socket-handling.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/test/parallel/test-http-end-throw-socket-handling.js b/test/parallel/test-http-end-throw-socket-handling.js index 204c0f73335480..a6debd07a13b10 100644 --- a/test/parallel/test-http-end-throw-socket-handling.js +++ b/test/parallel/test-http-end-throw-socket-handling.js @@ -30,11 +30,6 @@ server.listen(common.PORT, function() { } }); -setTimeout(function() { - process.removeListener('uncaughtException', catcher); - throw new Error('Taking too long!'); -}, common.platformTimeout(1000)).unref(); - process.on('uncaughtException', catcher); var errors = 0; function catcher() {