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:
@@ -73,11 +73,11 @@ describe("JebAnalysisService admission", () => {
|
||||
const requests: JebRequest[] = [];
|
||||
const service = new JebAnalysisService(fakePort(requests));
|
||||
const result = await service.execute("list_jeb_units", {});
|
||||
expect(result.ok).toBe(true);
|
||||
if (!result.ok) return;
|
||||
expect(requests[0]?.operation).toBe("list_jeb_units");
|
||||
if (!result.ok) throw result.error;
|
||||
expect(requests).toHaveLength(1);
|
||||
const request = requests[0];
|
||||
if (request?.operation !== "list_jeb_units") return;
|
||||
if (request?.operation !== "list_jeb_units")
|
||||
throw new Error("Expected the list_jeb_units provider request");
|
||||
expect(request.input.index).toBe(0);
|
||||
expect(request.input.count).toBe(100);
|
||||
expect(result.value.normalized_result).toEqual({ observed: true });
|
||||
|
||||
Reference in New Issue
Block a user