Skip to content

Conversation

@JoelEinbinder
Copy link
Contributor

This should give some peace of mind that Puppeteer isn't leaving zombie Chromium processes everywhere as we make changes to the closing code.

Copy link
Contributor

@aslushnikov aslushnikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m not sure I understand how this test relates to zombies. I’d expect some ps aux | grep Chromium or similar

@JoelEinbinder
Copy link
Contributor Author

It's not a comprehensive test. It just makes sure that Chromium shuts down when node is killed. I avoid ps aux by have a second outside connection to the Chromium and listening for it to disconnect.

@aslushnikov
Copy link
Contributor

I avoid ps aux by have a second outside connection to the Chromium and listening for it to disconnect.

I think there's already a test that does this (the one for the browser.disconnected event to be delivered). Do you still think this test adds value?

@JoelEinbinder
Copy link
Contributor Author

This doesn't test that we can close Chromium, but tests that Chromium closes when its parent node process is killed. I think its valuable by itself, and also as a template for other closing scenarios.

Copy link
Contributor

@aslushnikov aslushnikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see; thanks for explanation.

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 this pull request may close these issues.

2 participants