MCPcopy Index your code
hub / github.com/restify/node-restify / fakeServer

Function fakeServer

test/plugins/inflightRequestThrottle.test.js:9–15  ·  view source on GitHub ↗
(count)

Source from the content-addressed store, hash-verified

7var inflightRequestThrottle = restify.plugins.inflightRequestThrottle;
8
9function fakeServer(count) {
10 return {
11 inflightRequests: function() {
12 return count;
13 }
14 };
15}
16
17describe('inlfightRequestThrottle', function() {
18 it('Unit: Should shed load', function(done) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected