fix(verify): report final success only after resource cleanup

This commit is contained in:
morluto committed 2026-10-09 04:12:49 +08:00
1 parent 3eb7dbdc16
commit ee043e2cbf
17 files changed
+277 -195

No files matched your search

+8 -8
View File
@@ -49,6 +49,7 @@ const call = async (name, args) => {
};
const fingerprint = (bytes) => createHash("sha256").update(bytes).digest("hex");
const counts = [];
let finalReport;
try {
const fixtures = await buildRecoveryFixtures(
root,
@@ -128,19 +129,18 @@ try {
});
}
}
console.log(
JSON.stringify({
engine: "wakaru 1.13.0",
toolchains: fixtures.toolchains,
results: counts,
verified: true,
}),
);
finalReport = {
engine: "wakaru 1.13.0",
toolchains: fixtures.toolchains,
results: counts,
verified: true,
};
} finally {
await client.close();
await transport.close();
await rm(root, { recursive: true, force: true });
}
console.log(JSON.stringify(finalReport));
async function assertRecoveredArtifacts(evidence, result, fixture) {
assert.deepEqual(result.options, {