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 () {
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 () {

View File

@ -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,

View File

@ -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,

View File

@ -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,