From a85ae4873fc2c3e511ea8cc4496aff89553b59cd Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sat, 18 Jun 2016 13:33:03 -0500 Subject: [PATCH] wait for more time for upgrades --- cloudron.js | 4 ++-- test/cloudron-autoupdate-sfo1-test.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cloudron.js b/cloudron.js index 4a76e53..bbaca90 100644 --- a/cloudron.js +++ b/cloudron.js @@ -122,7 +122,7 @@ Cloudron.prototype.waitForApp = function (appId, version) { var res; for (var i = 0; i < 60; i++) { - sleep(20); + sleep(30); process.stdout.write('.'); res = request.get(this._origin + '/api/v1/apps/'+ appId).query({ access_token: this._credentials.accessToken }).end(); common.verifyResponse2xx(res, 'Could not query app status'); @@ -312,7 +312,7 @@ Cloudron.prototype.waitForUpdate = function (toVersion) { process.stdout.write('Waiting for update.'); var res; for (var i = 0; i < 60; i++) { - sleep(20); + sleep(30); res = request.get(this._origin + '/api/v1/cloudron/status').end(); if (res.statusCode === 200 && res.body.version === toVersion) { console.log(); diff --git a/test/cloudron-autoupdate-sfo1-test.js b/test/cloudron-autoupdate-sfo1-test.js index b5a898a..7b3362c 100644 --- a/test/cloudron-autoupdate-sfo1-test.js +++ b/test/cloudron-autoupdate-sfo1-test.js @@ -113,13 +113,13 @@ describe('Cloudron update testing', function () { it('can update to new version', function () { console.log('Wait for cloudron to get the update'); cloudron.checkForUpdates(); - sleep(60 * 5); // give it 5 mins to autoupdate the box and the app + sleep(60 * 10); // give it 10 mins to autoupdate the box and the app cloudron.waitForUpdate(nextVersion); }); it('auto updates the app with new version', function () { cloudron.checkForUpdates(); - sleep(60 * 5); // give it 5 mins to autoupdate the box and the app + sleep(60 * 10); // give it 10 mins to autoupdate the box and the app cloudron.waitForApp(appId, common.TESTAPP_VERSION); });