]> git.ardis.lu - csvio/commit
Properly isolate and perform memory leak test
authorArdis Lu <ardisglu@gmail.com>
Sun, 21 Sep 2025 05:28:59 +0000 (22:28 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sun, 21 Sep 2025 05:28:59 +0000 (22:28 -0700)
commitd3edcf837c773e342030037cfab204c56165fd23
treec7672366758efa74b902c9ceac317beb94b3bb7e
parentce754ad19a539530f148cf3dca4a0ed3090bf6e4
Properly isolate and perform memory leak test

Previously the garbage collection tests were flaky, because `gc()` may or may not happen before the memory leak threshold is tested.

Now the test will properly block on garbage collection (observed to take about 15 seconds). Separating it into its own test also makes it easier to debug the `large:` test suites by reducing concerns in each test.
test/large.test.js
This page took 0.03288 seconds and 4 git commands to generate.