diff --git a/src/artifacts/deno/DenoVirtualFs.test.ts b/src/artifacts/deno/DenoVirtualFs.test.ts index a5d4d6edec..a90354ac01 100644 --- a/src/artifacts/deno/DenoVirtualFs.test.ts +++ b/src/artifacts/deno/DenoVirtualFs.test.ts @@ -358,7 +358,6 @@ it("charges directory paths against the retained allowance", () => { })); const chain = (depth: number): unknown[] => depth === 0 ? emptySiblings : [{ Dir: { n: name, e: chain(depth - 1) } }]; - const started = performance.now(); expect(() => walkDenoVirtualFs(chain(MAX_DENO_LOGICAL_PATH_PARTS), 0), ).toThrow( @@ -367,5 +366,4 @@ it("charges directory paths against the retained allowance", () => { message: expect.stringContaining("MAX_DENO_VFS_RETAINED_UNITS"), }), ); - expect(performance.now() - started).toBeLessThan(5_000); }); diff --git a/src/desktop/AgentEnvSolveHelper.test.ts b/src/desktop/AgentEnvSolveHelper.test.ts index 95ccbdb293..bd358677cb 100644 --- a/src/desktop/AgentEnvSolveHelper.test.ts +++ b/src/desktop/AgentEnvSolveHelper.test.ts @@ -58,13 +58,13 @@ describe("runSolveHelper", () => { polling.signal, ); void started.catch(() => undefined); - const begun = Date.now(); const solved = runSolveHelper({ ...(await options(environment)), signal: stop.signal, retainCleanup: (owner) => retained.push(owner), - timing: { solveMs: 60_000, stopMs: 300 }, + // The solve deadline outlasts the test: only the stop grace ends it. + timing: { solveMs: 3_600_000, stopMs: 300 }, }); // agentenv keeps a sandbox's folder until its teardown is confirmed, so the @@ -80,7 +80,6 @@ describe("runSolveHelper", () => { expect((failure as Error).message).toBe("cancelled by the test"); expect(failure).not.toHaveProperty("cleanupIncomplete", true); expect(retained).toHaveLength(0); - expect(Date.now() - begun).toBeLessThan(15_000); } finally { polling.abort(); stop.abort(); diff --git a/src/domain/javascript/javascriptSemanticAnalysis.getter_aliases.test.ts b/src/domain/javascript/javascriptSemanticAnalysis.getter_aliases.test.ts index a4fe7ad5a2..94e9255807 100644 --- a/src/domain/javascript/javascriptSemanticAnalysis.getter_aliases.test.ts +++ b/src/domain/javascript/javascriptSemanticAnalysis.getter_aliases.test.ts @@ -109,7 +109,8 @@ describe("projected private getter receivers", () => { describe("private receiver field ownership", () => { it("bounds growing receiver projections under cyclic class inheritance", () => { - const started = performance.now(); + // Unbounded projection growth never returns: the synchronous analysis + // runs until it exhausts the heap, so returning is the oracle. const ir = analyzeJavaScriptSemantics(`export function result() { const shared = { x: 1 }; class A extends B { @@ -121,8 +122,6 @@ describe("private receiver field ownership", () => { new A().v.x = 2; return shared.x; }`); - // Unbounded projection growth would end only at a resource ceiling. - expect(performance.now() - started).toBeLessThan(1_000); expect(onlyCallable(ir, "result").returnSites[0]?.value).toMatchObject({ status: "literal", value: 1, diff --git a/src/javascript/sourceMaps/SourceMapCommand.test.ts b/src/javascript/sourceMaps/SourceMapCommand.test.ts index 7206f65bf8..1b93547480 100644 --- a/src/javascript/sourceMaps/SourceMapCommand.test.ts +++ b/src/javascript/sourceMaps/SourceMapCommand.test.ts @@ -364,7 +364,9 @@ it("stops a held drain after late output exceeds budget but keeps the exit prima }); expect(result.error.diagnostics?.stderr).toContain("physical exit 7"); expect(result.error.capturedOutput?.truncated).toBe(true); - expect(elapsedMs).toBeLessThan(5_000); + // The descendant holds stderr open forever, and a drain the codec deadline + // ends reports the same exit. Only the output-limit stop beats that deadline. + expect(elapsedMs).toBeLessThan(WEB_SOURCE_MAP_LIMITS.decodeTimeoutMs); }); it("preserves an observed process-memory limit over the codec exit status", async () => {