From c74b3b8e2a5a4500500d4e3252c71f93c767f8ef Mon Sep 17 00:00:00 2001 From: Utkarsh Maheshwari Date: Fri, 22 Nov 2019 16:22:19 +0530 Subject: [PATCH] fixup! Add test to check executionTimeout is capped --- test/unit/sandbox-timeout.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/unit/sandbox-timeout.test.js b/test/unit/sandbox-timeout.test.js index 8a6261eb..71f5418a 100644 --- a/test/unit/sandbox-timeout.test.js +++ b/test/unit/sandbox-timeout.test.js @@ -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(); }); });