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
This commit is contained in:
Timothy J Fontaine
2013-05-06 16:37:03 -07:00
parent dc92ff8585
commit 72c58158f7

View 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) {