Improve tests timeout in face of failures

This commit is contained in:
Mariusz Nowak 2019-05-29 15:37:54 +02:00
parent 36d1fb5147
commit ec3d8d2649
No known key found for this signature in database
GPG Key ID: B1FBDA8A182B03F2

View File

@ -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(