From d14342bfea717d151ad0c42dead0319fc52b9834 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Thu, 8 Sep 2016 22:13:15 +0200 Subject: [PATCH] Get token first, then enable email --- test/cloudron-update-ams3-test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/cloudron-update-ams3-test.js b/test/cloudron-update-ams3-test.js index deb74cb..cde989e 100644 --- a/test/cloudron-update-ams3-test.js +++ b/test/cloudron-update-ams3-test.js @@ -65,6 +65,11 @@ describe('Cloudron update testing', function () { cloudron.activate(owner); }); + it('can login to the box', function () { + var token = cloudron.getOauthToken(owner); + cloudron.setCredentials(owner.password, token); + }); + it('can enable email', function () { cloudron.setEmailEnabled(true); }); @@ -73,11 +78,6 @@ describe('Cloudron update testing', function () { cloudron.saveSieveScript(owner, done); }); - it('can login to the box', function () { - var token = cloudron.getOauthToken(owner); - cloudron.setCredentials(owner.password, token); - }); - var location = 'test' + (Math.random() * 10000).toFixed(); it('can install app', function () { var manifest = appStore.getManifest(common.TESTAPP_ID, common.PREV_TESTAPP_VERSION);