tests: Fix JavaScript tests with gjs 1.50.0

In recent gjs, you can't declare a variable with "let" multiple times.

Signed-off-by: Simon McVittie <smcv@collabora.com>

Closes: #1178
Approved by: cgwalters
This commit is contained in:
Simon McVittie 2017-09-15 15:32:55 +01:00 committed by Atomic Bot
parent 0488b4870e
commit 1b430a7764
2 changed files with 3 additions and 4 deletions

View File

@ -47,7 +47,6 @@ function listObjectChecksumsRecurse(dir, allObjects) {
e.close(null);
}
let [,commit] = repo.resolve_rev(refToCorrupt, false);
let [,root,commit] = repo.read_commit(refToCorrupt, null);
let allObjects = {};
allObjects[commit + '.commit'] = true;

View File

@ -97,9 +97,9 @@ assertEquals(deploymentPath.query_exists(null), false);
//// Ok, redeploy, then add a new revision upstream and pull it
let [,deployment] = sysroot.deploy_tree('testos', rev, origin,
mergeDeployment, null,
null);
[,deployment] = sysroot.deploy_tree('testos', rev, origin,
mergeDeployment, null,
null);
newDeployments = deployments;
deployments = null;
newDeployments.unshift(deployment);