mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 23:16:30 +01:00
f29762f4dd
Enable linting for the test directory. A number of changes was made so all tests conform the current rules used by lib and src directories. The only exception for tests is that unreachable (dead) code is allowed. test-fs-non-number-arguments-throw had to be excluded from the changes because of a weird issue on Windows CI. PR-URL: https://github.com/nodejs/io.js/pull/1721 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
28 lines
575 B
JavaScript
28 lines
575 B
JavaScript
'use strict';
|
|
// Failing test for https
|
|
|
|
// Will fail with "socket hang up" for 4 out of 10 requests
|
|
// Tested on node 0.5.0-pre commit 9851574
|
|
|
|
|
|
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);
|
|
});
|
|
}
|