Skip to content

MaxListenersExceededWarning for beforeExit event #1345

@novemberborn

Description

@novemberborn

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.

Metadata

Metadata

Assignees

Labels

bugcurrent functionality does not work as desiredhelp wanted

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions