|
@ -42,6 +42,7 @@ function runAb(opts, callback) { |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
server.addListener('listening', function () { |
|
|
runAb("-k -c 100 -t 2", function (reqSec, keepAliveRequests) { |
|
|
runAb("-k -c 100 -t 2", function (reqSec, keepAliveRequests) { |
|
|
keepAliveReqSec = reqSec; |
|
|
keepAliveReqSec = reqSec; |
|
|
assert.equal(true, keepAliveRequests > 0); |
|
|
assert.equal(true, keepAliveRequests > 0); |
|
@ -54,6 +55,7 @@ runAb("-k -c 100 -t 2", function (reqSec, keepAliveRequests) { |
|
|
server.close(); |
|
|
server.close(); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
process.addListener("exit", function () { |
|
|
process.addListener("exit", function () { |
|
|
assert.equal(true, normalReqSec > 50); |
|
|
assert.equal(true, normalReqSec > 50); |
|
|