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

Test suite logs MaxListenersExceededWarning #187

Closed
djones opened this issue May 8, 2019 · 2 comments · Fixed by #189
Closed

Test suite logs MaxListenersExceededWarning #187

djones opened this issue May 8, 2019 · 2 comments · Fixed by #189

Comments

@djones
Copy link
Contributor

djones commented May 8, 2019

(node:29441) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
    at _addListener (events.js:280:19)
    at WriteStream.addListener (events.js:297:10)
    at WriteStream.Readable.on (_stream_readable.js:772:35)
    at Snapshot._swallowEPIPE (/Users/djones/Code/percy-agent/node_modules/@oclif/command/lib/command.js:133:24)
    at Snapshot.init (/Users/djones/Code/percy-agent/node_modules/@oclif/command/lib/command.js:67:14)
    at Snapshot._run (/Users/djones/Code/percy-agent/node_modules/@oclif/command/lib/command.js:33:24)
    at Function.Command.run (/Users/djones/Code/percy-agent/node_modules/@oclif/command/lib/command.js:155:16)
    at <anonymous>

This issue looks pretty related forcedotcom/cli#30

And the Heroku CLI test runs have this same warning https://ci.appveyor.com/project/heroku/heroku-cli-command/branch/master#L174

Both Force.com and Heroku CLIs are using Oclif.

@djones
Copy link
Contributor Author

djones commented May 8, 2019

I believe this issue may have been introduced with oclif/command#54

@djones
Copy link
Contributor Author

djones commented May 9, 2019

Filed an issue for this oclif/command#63

djones added a commit that referenced this issue May 9, 2019
djones pushed a commit that referenced this issue May 9, 2019
## [0.4.6](v0.4.5...v0.4.6) (2019-05-09)

### Bug Fixes

* Lock to `@oclif/command` 1.5.10 to avoid `MaxListenersExceededWarning`. Closes [#187](#187) ([#189](#189)) ([50a2e76](50a2e76))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant