give some time for update to become available

This commit is contained in:
Girish Ramakrishnan 2017-04-24 11:10:47 -07:00
parent e60217145b
commit 43f7ef0852
4 changed files with 5 additions and 1 deletions

View File

@ -95,6 +95,7 @@ describe('Cloudron update testing', function () {
it('can update the box', function () { it('can update the box', function () {
cloudron.checkForUpdates(); cloudron.checkForUpdates();
sleep(60); // give it a minute to get update info
cloudron.update(toVersion); cloudron.update(toVersion);
}); });
@ -112,7 +113,7 @@ describe('Cloudron update testing', function () {
}); });
it('can set the autoupdate pattern', function () { it('can set the autoupdate pattern', function () {
cloudron.setAutoupdatePattern('00 */1 * * * *'); // every 1 minute (but updateChecker runs only every 10 mins :/) cloudron.setAutoupdatePattern('00 */1 * * * *'); // every 1 minute
}); });
it('can update to new version', function () { it('can update to new version', function () {

View File

@ -247,6 +247,7 @@ describe('Selfhost DigitalOcean with filesystem backend', function () {
it('can update the box', function () { it('can update the box', function () {
cloudron.checkForUpdates(); cloudron.checkForUpdates();
sleep(60); // give it a minute to get update info
var params = [ var params = [
'--cloudron ' + process.env.DO_SELFHOST_DOMAIN, '--cloudron ' + process.env.DO_SELFHOST_DOMAIN,

View File

@ -160,6 +160,7 @@ describe('Selfhost DigitalOcean with S3 backend', function () {
it('can update the box', function () { it('can update the box', function () {
cloudron.checkForUpdates(); cloudron.checkForUpdates();
sleep(60); // give it a minute to get update info
var params = [ var params = [
DO_SELFHOST_DOMAIN, DO_SELFHOST_DOMAIN,

View File

@ -154,6 +154,7 @@ describe('Selfhost EC2 Cloudron creation', function () {
it('can update the box', function () { it('can update the box', function () {
cloudron.checkForUpdates(); cloudron.checkForUpdates();
sleep(60); // give it a minute to get update info
var params = [ var params = [
EC2_SELFHOST_DOMAIN, EC2_SELFHOST_DOMAIN,