Fix detection of from and to version
This commit is contained in:
parent
7a577a08ae
commit
ddc64e81dc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user