diff --git a/src/superagent-mock.js b/src/superagent-mock.js index 31569d2..704dcdb 100755 --- a/src/superagent-mock.js +++ b/src/superagent-mock.js @@ -247,6 +247,12 @@ module.exports = function (superagent, config, logger) { } fn(error, response); } + + // release resources + if (this.req) { + this.req.end(); + } + return this; };