From 88dc83c237184993effe7635e66dc1eddaf43a70 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Fri, 1 Jul 2016 19:26:19 +0200 Subject: [PATCH] Check mail in the right spot --- test/selfhost-ec2-create-test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/selfhost-ec2-create-test.js b/test/selfhost-ec2-create-test.js index af3dbfa..907cd0a 100644 --- a/test/selfhost-ec2-create-test.js +++ b/test/selfhost-ec2-create-test.js @@ -106,6 +106,10 @@ describe('Selfhost EC2 Cloudron creation', function () { mailer.sendMailToCloudronUser(owner.username + '@' + SELFHOST_DOMAIN, done); }); + it('did receive mail', function (done) { + cloudron.checkMail(owner, done); + }); + var location = 'test' + (Math.random() * 10000).toFixed(); it('can install app', function () { var manifest = appStore.getManifest(common.TESTAPP_ID, common.TESTAPP_VERSION); @@ -215,10 +219,6 @@ describe('Selfhost EC2 Cloudron creation', function () { cloudron.uninstallApp(appId); }); - it('can check mail', function (done) { - cloudron.checkMail(owner, done); - }); - after(function (done) { console.log('Cleanup EC2 instances');