Skip to content

Commit be285c4

Browse files
author
Myles Borins
committed
squash benchmark
1 parent d608c48 commit be285c4

File tree

4 files changed

+5
-13
lines changed

4 files changed

+5
-13
lines changed

benchmark/net/dgram.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ var dgram = require('dgram');
3333

3434
function server() {
3535
var sent = 0;
36+
var received = 0;
3637
var socket = dgram.createSocket('udp4');
3738

3839
function onsend() {
@@ -52,5 +53,9 @@ function server() {
5253
}, dur * 1000);
5354
});
5455

56+
socket.on('message', function(buf, rinfo) {
57+
received++;
58+
});
59+
5560
socket.bind(PORT);
5661
}

test/parallel/test-event-emitter-remove-listeners.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,12 @@ var common = require('../common');
33
var assert = require('assert');
44
var events = require('events');
55

6-
var count = 0;
7-
86
function listener1() {
97
console.log('listener1');
10-
count++;
118
}
129

1310
function listener2() {
1411
console.log('listener2');
15-
count++;
1612
}
1713

1814
function remove1() {

test/parallel/test-tls-session-cache.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,7 @@ function doTest(testOptions, callback) {
8989
var client = spawn(common.opensslCli, args, {
9090
stdio: [ 0, 1, 'pipe' ]
9191
});
92-
var err = '';
9392
client.stderr.setEncoding('utf8');
94-
client.stderr.on('data', function(chunk) {
95-
err += chunk;
96-
});
9793
client.on('exit', function(code) {
9894
console.error('done');
9995
assert.equal(code, 0);

test/sequential/test-pump-file2tcp-noexist.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ var server = net.createServer(function(stream) {
2626
server.listen(common.PORT, function() {
2727
var conn = net.createConnection(common.PORT);
2828
conn.setEncoding('utf8');
29-
conn.on('data', function(chunk) {
30-
buffer += chunk;
31-
});
3229

3330
conn.on('end', function() {
3431
conn.end();
@@ -39,8 +36,6 @@ server.listen(common.PORT, function() {
3936
});
4037
});
4138

42-
var buffer = '';
43-
4439
process.on('exit', function() {
4540
assert.equal(true, got_error);
4641
assert.equal(true, conn_closed);

0 commit comments

Comments
 (0)