wait more

This commit is contained in:
Girish Ramakrishnan 2016-09-01 20:55:07 -07:00
parent 1f5bd4eda7
commit 8146074ead
4 changed files with 1 additions and 3 deletions

View File

@ -426,6 +426,7 @@ Cloudron.prototype.setEmailEnabled = function (enabled) {
.send({ enabled: enabled })
.end();
common.verifyResponse2xx(res, 'Could not enable email');
sleep(60); // generously wait for the mail server to restart. it takes 10 seconds to stop it... and then there is DNS propagation
};
Cloudron.prototype.checkTimeZone = function (tz) {

View File

@ -68,7 +68,6 @@ describe('Cloudron backup testing', function () {
it('can enable email', function () {
cloudron.setEmailEnabled(true);
sleep(20); // sometime for the mail container to come up
});
// mail alias tests (do this here because alias takes sometime to propagate)

View File

@ -71,7 +71,6 @@ describe('Custom domain test', function () {
it('can enable email', function () {
cloudron.setEmailEnabled(true);
sleep(20); // sometime for the mail container to come up
});
it('can migrate cloudron to custom domain', function () {

View File

@ -126,7 +126,6 @@ describe('Selfhost EC2 Cloudron creation', function () {
it('can enable email', function () {
cloudron.setEmailEnabled(true);
sleep(20); // sometime for the mail container to come up
});
it('send mail to cloudron user', function (done) {