fix(chord): widen the origin-record heap bound for CI noise

This commit is contained in:
Mario Zechner 2026-10-31 20:52:13 +00:00
parent cc08278a62
commit 20362c155e

View file

@ -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);
});