Skip to content

Commit

Permalink
fixup! Add test to check executionTimeout is capped
Browse files Browse the repository at this point in the history
  • Loading branch information
coditva committed Nov 22, 2019
1 parent f4c4535 commit c74b3b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/unit/sandbox-timeout.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@

it('should set a maximum allowed timeout', function (done) {
var options = {
timeout: 10 * 60 * 1000
timeout: 10 * 60 * 1000 // 10 minutes
};

Sandbox.createContext(options, function (err, ctx) {
expect(ctx.executionTimeout).to.equal(5 * 60 * 1000);
expect(err).to.not.exist;
expect(ctx.executionTimeout).to.equal(5 * 60 * 1000); // 5 minutes
done();
});
});
Expand Down

0 comments on commit c74b3b8

Please sign in to comment.