Allow integration tests longer timeouts

This commit is contained in:
Florian Motlik 2016-09-26 12:48:32 +02:00
parent eec54e348b
commit d6bdef35ce
2 changed files with 6 additions and 3 deletions

View File

@ -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);

View File

@ -763,7 +763,8 @@ describe('PluginManager', () => {
});
});
it('Plugin/CLI integration', () => {
it('Plugin/CLI integration', function () {
this.timeout(10000);
const serverlessInstance = new Serverless();
serverlessInstance.init();