wait a bit for timezone value

This commit is contained in:
Girish Ramakrishnan 2016-06-10 15:39:19 -07:00
parent 48384f3e67
commit c3c5eafefd
1 changed files with 6 additions and 5 deletions

View File

@ -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([