diff options
Diffstat (limited to 'test/disabled/test-https-loop-to-google.js')
-rw-r--r-- | test/disabled/test-https-loop-to-google.js | 39 |
1 files changed, 17 insertions, 22 deletions
diff --git a/test/disabled/test-https-loop-to-google.js b/test/disabled/test-https-loop-to-google.js index cb29f2c226..e498895ed2 100644 --- a/test/disabled/test-https-loop-to-google.js +++ b/test/disabled/test-https-loop-to-google.js @@ -1,3 +1,4 @@ +'use strict'; // Failing test for https // Will fail with "socket hang up" for 4 out of 10 requests @@ -7,26 +8,20 @@ var common = require('../common'); var https = require('https'); -for (var i = 0; i < 10; ++i) -{ - https.get( - { - host: 'www.google.com', - path: '/accounts/o8/id', - port: 443 - }, function(res) - { - var data = ''; - res.on('data', function(chunk) - { - data += chunk; - }); - res.on('end', function() - { - console.log(res.statusCode); - }); - }).on('error', function(error) - { - console.log(error); - }); +for (var i = 0; i < 10; ++i) { + https.get({ + host: 'www.google.com', + path: '/accounts/o8/id', + port: 443 + }, function(res) { + var data = ''; + res.on('data', function(chunk) { + data += chunk; + }); + res.on('end', function() { + console.log(res.statusCode); + }); + }).on('error', function(error) { + console.log(error); + }); } |