Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add tests to detect memory leaks #225

Merged
merged 5 commits into from Aug 13, 2018
Merged

add tests to detect memory leaks #225

merged 5 commits into from Aug 13, 2018

Conversation

rochdev
Copy link
Member

@rochdev rochdev commented Aug 10, 2018

This PR adds tests to detect memory leaks. It uses a single heap diff of several thousands iterations and assumes that if any object type has more instances in memory than the number of iterations there is a leak.

Right now only components that don't interact with http are tested, since there is a bug in Node where calling the http module in quick successions always results in a memory leak.

@rochdev rochdev merged commit b1e08fd into master Aug 13, 2018
@rochdev rochdev deleted the leaks-test branch August 13, 2018 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants