Skip to content

Commit

Permalink
larger batch size, leak test still passes
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Oct 21, 2012
1 parent 3e3906e commit a414daa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/leak.js
Expand Up @@ -24,9 +24,11 @@ var bs = bouncy(function (req, bounce) {
bs.listen(0, listening);
var bport = bs.address().port;

var batchSize = 400;

function flurry (t, cb) {
var pending = 50;
for (var i = 0; i < 50; i++) {
var pending = batchSize;
for (var i = 0; i < batchSize; i++) {
check(t, function () {
if (--pending === 0) cb();
});
Expand All @@ -35,7 +37,7 @@ function flurry (t, cb) {

function runTest () {
test('check for leaks', function (t) {
t.plan(50 * 2 + 1);
t.plan(batchSize * 2 + 1);

flurry(t, function () {
var baseline = process.memoryUsage();
Expand Down

0 comments on commit a414daa

Please sign in to comment.