mirror of
https://github.com/nodejs/node.git
synced 2025-05-01 17:03:34 +00:00

The http tests seem especially prone to including unused variables. This change removes them. PR-URL: https://github.com/nodejs/node/pull/4422 Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
18 lines
349 B
JavaScript
18 lines
349 B
JavaScript
'use strict';
|
|
var common = require('../common');
|
|
var http = require('http');
|
|
|
|
var server = http.createServer(function(req, res) {
|
|
res.end('Hello');
|
|
});
|
|
|
|
server.listen(common.PORT, function() {
|
|
var req = http.get({port: common.PORT}, function(res) {
|
|
res.on('data', function(data) {
|
|
req.abort();
|
|
server.close();
|
|
});
|
|
});
|
|
});
|
|
|