Updating API and log generator

This commit is contained in:
Spencer Alger
2014-04-25 16:20:25 -07:00
parent c5ea877e3b
commit 35003b122b
13 changed files with 603 additions and 86 deletions

View File

@ -390,8 +390,10 @@ YamlDoc.prototype = {
catcher = null;
}
var timeoutId;
var cb = _.bind(function (error, body, status) {
this._last_requests_response = body;
clearTimeout(timeoutId);
if (error) {
if (catcher) {
@ -414,7 +416,14 @@ YamlDoc.prototype = {
done(error);
}, this);
clientAction.call(client, params, cb);
var req = clientAction.call(client, params, cb);
timeoutId = setTimeout(function () {
// request timed out, so we will skip the rest of the tests and continue
req.abort();
this.skipping = true;
this._last_requests_response = {};
done();
}.bind(this), 20000);
},
/**