Skip to content

Commit

Permalink
squash benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
Myles Borins committed Jul 12, 2016
1 parent d608c48 commit be285c4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
5 changes: 5 additions & 0 deletions benchmark/net/dgram.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ var dgram = require('dgram');

function server() {
var sent = 0;
var received = 0;
var socket = dgram.createSocket('udp4');

function onsend() {
Expand All @@ -52,5 +53,9 @@ function server() {
}, dur * 1000);
});

socket.on('message', function(buf, rinfo) {
received++;
});

socket.bind(PORT);
}
4 changes: 0 additions & 4 deletions test/parallel/test-event-emitter-remove-listeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,12 @@ var common = require('../common');
var assert = require('assert');
var events = require('events');

var count = 0;

function listener1() {
console.log('listener1');
count++;
}

function listener2() {
console.log('listener2');
count++;
}

function remove1() {
Expand Down
4 changes: 0 additions & 4 deletions test/parallel/test-tls-session-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,7 @@ function doTest(testOptions, callback) {
var client = spawn(common.opensslCli, args, {
stdio: [ 0, 1, 'pipe' ]
});
var err = '';
client.stderr.setEncoding('utf8');
client.stderr.on('data', function(chunk) {
err += chunk;
});
client.on('exit', function(code) {
console.error('done');
assert.equal(code, 0);
Expand Down
5 changes: 0 additions & 5 deletions test/sequential/test-pump-file2tcp-noexist.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ var server = net.createServer(function(stream) {
server.listen(common.PORT, function() {
var conn = net.createConnection(common.PORT);
conn.setEncoding('utf8');
conn.on('data', function(chunk) {
buffer += chunk;
});

conn.on('end', function() {
conn.end();
Expand All @@ -39,8 +36,6 @@ server.listen(common.PORT, function() {
});
});

var buffer = '';

process.on('exit', function() {
assert.equal(true, got_error);
assert.equal(true, conn_closed);
Expand Down

0 comments on commit be285c4

Please sign in to comment.