diff --git a/test/new-user-test.js b/test/new-user-test.js index 9fafbc0..84adc4c 100644 --- a/test/new-user-test.js +++ b/test/new-user-test.js @@ -63,11 +63,7 @@ describe('Appstore new user flow', function () { cloudron.setCredentials(owner.password, token); }); - it('can get the timezone', function () { - cloudron.checkTimeZone('America/New_York'); // this is the timezone of the ec2 ci machine - }); - - var location = 'haste' + (Math.random() * 10000).toFixed(); + var location = 'haste' + (Math.random() * 10000).toFixed(); it('can install app', function () { appId = cloudron.installApp(location, 'com.hastebin.cloudronapp@0.3.0'); }); @@ -81,6 +77,11 @@ describe('Appstore new user flow', function () { cloudron.uninstallApp(appId); }); + it('can get the timezone', function () { + // cloudron timezone is set async and this check is here to give Cloudron some time + cloudron.checkTimeZone('America/New_York'); // this is the timezone of the ec2 ci machine + }); + // check this after activation it('has setup DNS records correctly', function (done) { async.series([