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 for beforeExit event #1345

Closed
novemberborn opened this issue Apr 6, 2017 · 0 comments · Fixed by singapore/gl-got#20
Closed

MaxListenersExceededWarning for beforeExit event #1345

novemberborn opened this issue Apr 6, 2017 · 0 comments · Fixed by singapore/gl-got#20
Assignees
Labels
bug current functionality does not work as desired help wanted

Comments

@novemberborn
Copy link
Member

Sequence listens for the beforeExit event. This is done for every test in the worker. If there are more than 10 tests this causes a MaxListenersExceededWarning to be reported.

See

process.on('beforeExit', onBeforeExit);
.

We need to manage beforeExit subscriptions so that we only listen on process once, but still allow multiple callbacks due to concurrent Sequence runs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug current functionality does not work as desired help wanted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant