Skip to content

Commit a8e0fe0

Browse files
committed
test(memory): give the #848 provenance test headroom on slow CI runners
Each GET /api/system/memory read costs ~600 ms on the shared ubuntu runner (the route samples the live process), and the test performs eight reads — 5.2 s against bun's 5 s default timeout, which is how it flaked red on the wp6 head while passing locally and on macos. Bump the per-test timeout to 20 s; the assertions and read count are unchanged.
1 parent daf7069 commit a8e0fe0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/memory-watchdog.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,9 @@ describe("GET /api/system/memory", () => {
296296
else process.env.OCX_BUN_RUNTIME_SOURCE = inherited;
297297
delete process.env.OCX_BUN_RUNTIME_PATH;
298298
}
299-
});
299+
// The route costs ~600 ms per read on the shared CI runners, and this test makes
300+
// eight of them — marginally over bun's 5 s default on a loaded box.
301+
}, 20_000);
300302

301303
test("GET system memory includes privacy-safe appOwnedBytes scalars", async () => {
302304
registerDefaultAppOwnedMemoryStores();

0 commit comments

Comments
 (0)