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

MaxListenersExceededWarning when running unit tests #28

Closed
gdereese opened this issue Mar 3, 2018 · 0 comments
Closed

MaxListenersExceededWarning when running unit tests #28

gdereese opened this issue Mar 3, 2018 · 0 comments
Labels
bug Something isn't working refactor Existing source code can be improved
Milestone

Comments

@gdereese
Copy link
Owner

gdereese commented Mar 3, 2018

When there's a test class that has too many tests new-ing up a vorpal instance, the following is logged to the console when running the tests:

(node:25840) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 vorpal_ui_keypress listeners added. Use emitter.setMaxListeners() to increase limit

@gdereese gdereese added the refactor Existing source code can be improved label Mar 3, 2018
@gdereese gdereese changed the title refactor tests to reuse an existing vorpal instance where possible MaxListenersExceededWarning when running unit tests Mar 9, 2018
@gdereese gdereese added the bug Something isn't working label Mar 9, 2018
@gdereese gdereese added this to the 0.5.1 milestone Mar 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working refactor Existing source code can be improved
Projects
None yet
Development

No branches or pull requests

1 participant