mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-22 17:35:55 +03:00
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:
parent
0488b4870e
commit
1b430a7764
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user