wait for a couple of minutes in ec2 code

This commit is contained in:
Girish Ramakrishnan 2016-08-13 01:18:11 -07:00
parent d00f0c3824
commit 2bb6f9dcbd
1 changed files with 7 additions and 0 deletions

View File

@ -14,6 +14,7 @@ var AppStore = require('../appstore.js'),
common = require('../common.js'),
mailer = require('../mailer.js'),
semver = require('semver'),
sleep = require('../shell.js').sleep,
request = require('superagent-sync'),
util = require('util');
@ -108,6 +109,12 @@ describe('Selfhost EC2 Cloudron creation', function () {
});
});
it('can take a breather', function () {
// ec2 can be really slow to come up. the addon containers take their own sweet time (they are "async" with the box startup)
// we end up sending email even before the mail container is ready
sleep(120);
});
it('can activate the box', function () {
cloudron.activate(owner);
});