CultLib/packages/cultmesh-ts/test
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Meta Vens 9a7e20a8d2 cultmesh-ts: add a steady-state memory test for the nextEvent leak
Calls the runtime's private `nextEvent` directly (0 ms timeout, no
listener/connection open, so each round trip returns immediately with
status 0) 200,000 times after a warm-up, then asserts RSS growth
across the run stays under 5 MiB with `global.gc()` forced before and
after. The old per-call `koffi.alloc` code allocates a ~64 B event
struct plus a 4 B int32 every iteration and never frees either, so it
clears this bound by roughly 2x; the fixed code, which allocates
nothing per call, stays flat. Skips when no native bridge is built or
when Node wasn't started with `--expose-gc`; `npm test` now passes
`--expose-gc` so the check runs by default instead of always skipping.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-23 19:11:41 +02:00
..
fixtures Add a provenance note for the QUIC test fixtures 2026-09-23 14:46:25 +02:00
interop Extend the Cut 5 interop lane: a late C# native connector gets the TS retained frame 2026-09-23 18:32:39 +02:00
support Add the release() use-after-free regression test (fix 2) 2026-09-23 16:14:42 +02:00
cultmesh.test.ts Fix cultnet-ts test build for out-of-package contract location 2026-09-13 17:43:55 +02:00
provider-rudp-transport.test.ts Fence provider RUDP connection generations 2026-07-19 00:50:20 +01:00
provider-session-wire.test.ts Fence provider RUDP connection generations 2026-07-19 00:50:20 +01:00
provider-session.test.ts Add durable TypeScript provider sessions 2026-07-14 23:13:13 +01:00
realtime-quic-consumer.test.ts Bound the remaining fault-path tests against a regressed fault/cleanup path 2026-09-23 17:42:31 +02:00
realtime-quic-native.test.ts cultmesh-ts: add a steady-state memory test for the nextEvent leak 2026-09-23 19:11:41 +02:00
realtime-quic-provider.test.ts TS QUIC provider: retain the newest latest-only frame per (channel, body) 2026-09-23 18:17:16 +02:00
realtime-quic-release-uaf.test.ts Add the release() use-after-free regression test (fix 2) 2026-09-23 16:14:42 +02:00
realtime-quic-session-manager.test.ts Add tests for dial cancellation, F5abort and F5loser 2026-09-23 15:53:34 +02:00
realtime-wire.test.ts Stop the realtime decoder handing back a view of its own frame 2026-09-16 20:20:16 +02:00