diff options
author | Timothy J Fontaine <tjfontaine@gmail.com> | 2013-05-07 03:37:03 +0400 |
---|---|---|
committer | Timothy J Fontaine <tjfontaine@gmail.com> | 2013-05-09 06:31:45 +0400 |
commit | 72c58158f7a8bd08a0af085f0e2012cfccbf19b5 (patch) | |
tree | 64c9b261d70c086911bb4fe9ff2c6842daa1b3d1 /test | |
parent | dc92ff85851efdbc5ddb44150a95265982437a59 (diff) |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/pummel/test-net-many-clients.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/pummel/test-net-many-clients.js b/test/pummel/test-net-many-clients.js index 3f394b8abe2..83ff1819903 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) { |