|
@@ -219,19 +219,6 @@ describe('Application life cycle test', function () {
|
|
|
it('has correct htaccess', checkHtaccess);
|
|
|
it('can access permalink', checkPermalink);
|
|
|
|
|
|
- it('runs cron jobs', function (done) {
|
|
|
- console.log('sleeping for a minute to ensure that cron job has run');
|
|
|
-
|
|
|
- setTimeout(function () {
|
|
|
- var logs = execSync('cloudron logs --lines 1000 --app ' + app.id).toString('utf8');
|
|
|
- if (logs.indexOf('Executed the cron event \'wp_version_check\'') !== -1) return done();
|
|
|
-
|
|
|
- console.log(logs);
|
|
|
-
|
|
|
- done(new Error('cron jobs are possibly not running'));
|
|
|
- }, 60 * 1000);
|
|
|
- });
|
|
|
-
|
|
|
it('can restart app', function (done) {
|
|
|
execSync('cloudron restart --wait');
|
|
|
done();
|
|
@@ -258,6 +245,15 @@ describe('Application life cycle test', function () {
|
|
|
it('can access permalink', checkPermalink);
|
|
|
it('can login', login.bind(null, username, password));
|
|
|
|
|
|
+ it('runs cron jobs', function (done) {
|
|
|
+ var logs = execSync('cloudron logs --lines 1000 --app ' + app.id).toString('utf8');
|
|
|
+ if (logs.indexOf('Executed the cron event \'wp_version_check\'') !== -1) return done();
|
|
|
+
|
|
|
+ console.log(logs);
|
|
|
+
|
|
|
+ done(new Error('cron jobs are possibly not running'));
|
|
|
+ });
|
|
|
+
|
|
|
it('move to different location', function () {
|
|
|
browser.manage().deleteAllCookies();
|
|
|
execSync('cloudron configure --wait --location ' + LOCATION + '2', { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|