lab
lab copied to clipboard
Track leaking timers, sockets, open files, child processes, etc
What problem are you trying to solve?
Track any leaking open file descriptors. Currently this is done in inert
through a platform-specific hack.
Do you have a new or modified API suggestion to solve the problem?
Add a new option / flag, that will make the tests fail on any such leak. Both at an individual test level, and at a global level, similar to the already integrated leak detection.
Besides making the inert
tests simpler, and platform agnostic, this feature can help expose issues in existing code and tests.
See wtfnode for a way to do this.
I would personally support taking a PR for this feature request as described 👍
I suspect an implementation would consist of 2 parts. A new module that enables the tracking, and a subsequent integration into lab.