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

Wait for all browser to completet beforer cleaning up StateManager #760

Merged
merged 1 commit into from
Nov 2, 2021

Conversation

step2yeung
Copy link
Collaborator

@step2yeung step2yeung commented Nov 2, 2021

Problem:
For test executions with a small number of tests but was triggered to run with many browsers, it's often the case that not every single browser will receive a test when running with load-balance.
The existing if (this.stateManager.getCompletedBrowser() === browsersStarted.size) { will prematurely reset the stateManager when lingering browsers has not exited. This causes the run to fail with 'No ModuleQueue set' error when a browser that took longer to instantiate sends a getNextModule event

Resolution:
By adding if (completedBrowser === browserCount) {, we will wait for all browsers to exit prior to resetting the stateManager. Preventing us from hitting 'No ModuleQueue set' error.

@step2yeung step2yeung merged commit ad1eb71 into ember-cli:master Nov 2, 2021
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.

1 participant