test: strengthen archive and resource cleanup assertions

Replace duplicate path-helper checks with real ZIP inventory coverage and replace global memory sampling with bounded-chunk assertions while retaining 64 MiB digest coverage. Await artifact client cleanup, preserve Hopper lease ownership during teardown, and expose typed application failures.
This commit is contained in:
morluto
2026-10-12 04:53:27 +08:00
parent 804c287e44
commit 5ba1642a7d
8 changed files with 137 additions and 129 deletions
+1 -2
View File
@@ -21,8 +21,7 @@ const { runProviderAnalysis } = createDirectAnalysis({});
export const requireSuccessfulProjection = (
result: Result<Evidence, AnalysisError>,
): Evidence => {
if (!result.ok)
throw new TypeError("Expected application projection to succeed");
if (!result.ok) throw result.error;
return result.value;
};