From 72c58158f7a8bd08a0af085f0e2012cfccbf19b5 Mon Sep 17 00:00:00 2001 From: Timothy J Fontaine Date: Mon, 6 May 2013 16:37:03 -0700 Subject: [PATCH] test: fix pummel/test-net-many-clients.js client sockets no longer emit 'connect' event inside the requestListener, update test-net-many-clients to reflect that --- test/pummel/test-net-many-clients.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/test/pummel/test-net-many-clients.js b/test/pummel/test-net-many-clients.js index 3f394b8ab..83ff18199 100644 --- a/test/pummel/test-net-many-clients.js +++ b/test/pummel/test-net-many-clients.js @@ -37,12 +37,11 @@ for (var i = 0; i < bytes; i++) { } var server = net.createServer(function(c) { - c.on('connect', function() { - total_connections++; - common.print('#'); - c.write(body); - c.end(); - }); + console.log('connected'); + total_connections++; + common.print('#'); + c.write(body); + c.end(); }); function runClient(callback) {