From 43f7ef08529126ea430347f334473e417fb5c172 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 24 Apr 2017 11:10:47 -0700 Subject: [PATCH] give some time for update to become available --- test/cloudron-autoupdate-sfo1-test.js | 3 ++- test/selfhost-digitalocean-filesystem-test.js | 1 + test/selfhost-digitalocean-s3-test.js | 1 + test/selfhost-ec2-test.js | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/test/cloudron-autoupdate-sfo1-test.js b/test/cloudron-autoupdate-sfo1-test.js index 1cd7042..ae72c5f 100644 --- a/test/cloudron-autoupdate-sfo1-test.js +++ b/test/cloudron-autoupdate-sfo1-test.js @@ -95,6 +95,7 @@ describe('Cloudron update testing', function () { it('can update the box', function () { cloudron.checkForUpdates(); + sleep(60); // give it a minute to get update info cloudron.update(toVersion); }); @@ -112,7 +113,7 @@ describe('Cloudron update testing', 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 () { diff --git a/test/selfhost-digitalocean-filesystem-test.js b/test/selfhost-digitalocean-filesystem-test.js index 11c7d85..6383186 100644 --- a/test/selfhost-digitalocean-filesystem-test.js +++ b/test/selfhost-digitalocean-filesystem-test.js @@ -247,6 +247,7 @@ describe('Selfhost DigitalOcean with filesystem backend', function () { it('can update the box', function () { cloudron.checkForUpdates(); + sleep(60); // give it a minute to get update info var params = [ '--cloudron ' + process.env.DO_SELFHOST_DOMAIN, diff --git a/test/selfhost-digitalocean-s3-test.js b/test/selfhost-digitalocean-s3-test.js index 0ea32b4..671a445 100644 --- a/test/selfhost-digitalocean-s3-test.js +++ b/test/selfhost-digitalocean-s3-test.js @@ -160,6 +160,7 @@ describe('Selfhost DigitalOcean with S3 backend', function () { it('can update the box', function () { cloudron.checkForUpdates(); + sleep(60); // give it a minute to get update info var params = [ DO_SELFHOST_DOMAIN, diff --git a/test/selfhost-ec2-test.js b/test/selfhost-ec2-test.js index c12dee6..085dd8f 100644 --- a/test/selfhost-ec2-test.js +++ b/test/selfhost-ec2-test.js @@ -154,6 +154,7 @@ describe('Selfhost EC2 Cloudron creation', function () { it('can update the box', function () { cloudron.checkForUpdates(); + sleep(60); // give it a minute to get update info var params = [ EC2_SELFHOST_DOMAIN,