Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
rgarcia committed Nov 4, 2016
1 parent 953993a commit 58eee55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions samples/gen-js/index.js
Expand Up @@ -376,3 +376,7 @@ module.exports = class SwaggerTest {
});
}
}

module.exports.RetryPolicies = {
Default: defaultRetryPolicy,
};
2 changes: 1 addition & 1 deletion samples/gen-js/test/test.js
Expand Up @@ -26,7 +26,7 @@ describe("retries", function() {
assert(!err, "unexpected error: " + util.inspect(err));
const backoffMS1 = requestTimes[1].getTime() - requestTimes[0].getTime();
const backoffMS2 = requestTimes[2].getTime() - requestTimes[1].getTime();
assert(backoffMS1 < 120 && backoffMS1 > 80, "expected first backoff to be roughly 100ms, got " + backoffMS1)
assert(backoffMS1 < 200 && backoffMS1 > 80, "expected first backoff to be roughly 100ms, got " + backoffMS1)
assert(backoffMS2 < 240 && backoffMS2 > 160, "expected second backoff to be roughly 200ms, got " + backoffMS2);
scope.done();
done();
Expand Down

0 comments on commit 58eee55

Please sign in to comment.