From 20362c155eb92d64b128f7091d237fc6e923086c Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Sat, 31 Oct 2026 20:52:13 +0000 Subject: [PATCH] fix(chord): widen the origin-record heap bound for CI noise --- packages/chord/test/next/remote/host-link.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/chord/test/next/remote/host-link.test.ts b/packages/chord/test/next/remote/host-link.test.ts index a3da2f05d..874287405 100644 --- a/packages/chord/test/next/remote/host-link.test.ts +++ b/packages/chord/test/next/remote/host-link.test.ts @@ -502,8 +502,8 @@ describe("origins only from relays (decision, slice 10 security audit K1/K2)", ( await churn(1, 2_000); const before = await settledHeap(); await churn(2_001, 22_000); - // About 1 KiB per origin before: 20 MiB. - expect((await settledHeap()) - before).toBeLessThan(512 * 1024); + // About 1 KiB per origin before: 20 MiB. The bound leaves room for heap noise (CI measured 0.6 MiB). + expect((await settledHeap()) - before).toBeLessThan(4 * 1024 * 1024); expect(peer.closed).toBe(false); }, 60_000); });