test: fix pummel/test-net-many-clients.js
authorTimothy J Fontaine <tjfontaine@gmail.com>
Mon, 6 May 2013 23:37:03 +0000 (16:37 -0700)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Thu, 9 May 2013 02:31:45 +0000 (19:31 -0700)
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

index 3f394b8..83ff181 100644 (file)
@@ -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) {