From ddc64e81dc3873ef35f593d046ed41e7e360c26f Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 24 Jul 2015 17:34:10 -0700 Subject: [PATCH] Fix detection of from and to version --- test/cloudron-update-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cloudron-update-test.js b/test/cloudron-update-test.js index 47f759b..d5bd866 100644 --- a/test/cloudron-update-test.js +++ b/test/cloudron-update-test.js @@ -42,8 +42,8 @@ describe('Cloudron update testing', function () { res = request.get('https://s3.amazonaws.com/staging-cloudron-releases/versions.json').end(); common.verifyResponse(res); var boxVersions = Object.keys(res.body).sort(semver.rcompare); - fromVersion = boxVersions[1]; - toVersion = boxVersions[0]; + fromVersion = boxVersions[2]; // we released a new version in before() + toVersion = boxVersions[1]; nextVersion = semver.inc(toVersion, 'patch'); console.log('Will test update from %s to %s', fromVersion.yellow, toVersion.yellow);