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

tests - shutdown gracefully to enable webview tests #90508

Merged
merged 7 commits into from Feb 12, 2020
Merged

Conversation

bpasero
Copy link
Member

@bpasero bpasero commented Feb 12, 2020

@bpasero bpasero added this to the February 2020 milestone Feb 12, 2020
@bpasero bpasero self-assigned this Feb 12, 2020
Copy link
Contributor

@deepak1556 deepak1556 left a comment

Choose a reason for hiding this comment

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

LGTM with minor change, should fix the crash 🤞

new Promise(c => {
const testWindow = BrowserWindow.getAllWindows()[0];
if (testWindow && !testWindow.isDestroyed()) {
testWindow.on('closed', () => c());
Copy link
Contributor

Choose a reason for hiding this comment

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

Would also want to check the validity of testWindow.webContents and listen to the event accordingly for the reasons mentioned here https://github.com/electron/electron/blob/master/spec-main/window-helpers.ts#L7-L20

Copy link
Member Author

Choose a reason for hiding this comment

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

@deepak1556 ok see my latest commit

@bpasero
Copy link
Member Author

bpasero commented Feb 12, 2020

I actually think this change does not help: https://github.com/microsoft/vscode/runs/440525717#step:14:456

@bpasero bpasero merged commit 3388bf6 into master Feb 12, 2020
@bpasero bpasero deleted the ben/close-exit branch February 12, 2020 12:06
@github-actions github-actions bot locked and limited conversation to collaborators Mar 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants