Fix detection of from and to version

This commit is contained in:
Girish Ramakrishnan 2015-07-24 17:34:10 -07:00
parent 7a577a08ae
commit ddc64e81dc
1 changed files with 2 additions and 2 deletions

View File

@ -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);