set alias early

This commit is contained in:
Girish Ramakrishnan 2016-06-24 17:35:26 -05:00
parent db3e9ccbc3
commit b10f19f2ca

View File

@ -66,6 +66,11 @@ describe('Cloudron backup testing', function () {
cloudron.setCredentials(owner.password, token);
});
// mail alias tests (do this here because alias takes sometime to propagate)
it('can set aliases', function () {
cloudron.setAliases(owner, ['admin', 'mail']);
});
// mail tests as normal user
it('can send mail to cloudron user', function (done) {
mailer.sendMailToCloudronUser(owner.username + '@' + cloudron.fqdn(), done);
@ -91,11 +96,6 @@ describe('Cloudron backup testing', function () {
cloudron.saveSieveScript(owner, done);
});
// mail alias tests
it('can set aliases', function () {
cloudron.setAliases(owner, ['admin', 'mail']);
});
it('can send email to alias', function (done) {
mailer.sendMailToCloudronUser('admin@' + box.domain, done);
});