From d6bdef35ce9830837cc4d5d976e8fbf81daab0a7 Mon Sep 17 00:00:00 2001 From: Florian Motlik Date: Mon, 26 Sep 2016 12:48:32 +0200 Subject: [PATCH] Allow integration tests longer timeouts --- tests/classes/CLI.js | 6 ++++-- tests/classes/PluginManager.js | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/classes/CLI.js b/tests/classes/CLI.js index 2f1ccf1a2..7d1c05cea 100644 --- a/tests/classes/CLI.js +++ b/tests/classes/CLI.js @@ -291,7 +291,8 @@ describe('CLI', () => { process.chdir(this.cwd); }); - it('prints general --help to stdout', (done) => { + it('prints general --help to stdout', function (done) { + this.timeout(10000); exec(`${this.serverlessExec} --help`, (err, stdout) => { if (err) { done(err); @@ -303,7 +304,8 @@ describe('CLI', () => { }); }); - it('prints command --help to stdout', (done) => { + it('prints command --help to stdout', function (done) { + this.timeout(10000); exec(`${this.serverlessExec} deploy --help`, (err, stdout) => { if (err) { done(err); diff --git a/tests/classes/PluginManager.js b/tests/classes/PluginManager.js index 258766c15..459f6e644 100644 --- a/tests/classes/PluginManager.js +++ b/tests/classes/PluginManager.js @@ -763,7 +763,8 @@ describe('PluginManager', () => { }); }); - it('Plugin/CLI integration', () => { + it('Plugin/CLI integration', function () { + this.timeout(10000); const serverlessInstance = new Serverless(); serverlessInstance.init();