From ec3d8d2649ea979d962c6eb7a4cf7e3fe630bbb2 Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Wed, 29 May 2019 15:37:54 +0200 Subject: [PATCH] Improve tests timeout in face of failures --- lib/plugins/aws/invokeLocal/index.test.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/plugins/aws/invokeLocal/index.test.js b/lib/plugins/aws/invokeLocal/index.test.js index 355f9636e..880f9a385 100644 --- a/lib/plugins/aws/invokeLocal/index.test.js +++ b/lib/plugins/aws/invokeLocal/index.test.js @@ -934,7 +934,8 @@ describe('AwsInvokeLocal', () => { }); describe('context.remainingTimeInMillis', () => { - it('should become lower over time', () => { + it('should become lower over time', function () { + this.timeout(3000); // On Windows it tends to timeout with 2000 awsInvokeLocal.serverless.config.servicePath = __dirname; return awsInvokeLocal.invokeLocalRuby( @@ -948,7 +949,9 @@ describe('AwsInvokeLocal', () => { }); describe('calling a class method', () => { - it('should execute', () => { + it('should execute', function () { + this.timeout(3000); // On Windows it tends to timeout with 2000 + awsInvokeLocal.serverless.config.servicePath = __dirname; return awsInvokeLocal.invokeLocalRuby(