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

fix: avoid running connect in global setup if browserWSEndpoint provided in config #458

Merged
merged 4 commits into from
Dec 13, 2021

Conversation

Ankit098
Copy link
Contributor

@Ankit098 Ankit098 commented Dec 2, 2021

When browserWSEndpoint is provided in config there is no need to run the connect method in global.js to get the wsEndpoint. The provided one can be directly used.

The aforementioned connect method causes one extra empty session to be formed when running tests on cloud browser providers. Related issue: #452

Test plan

Passes tests on running jest --runInBand.

new test:
image

@UziTech
Copy link
Contributor

UziTech commented Dec 2, 2021

Can you write a test for this?

@Ankit098
Copy link
Contributor Author

Hey, let me know if any further changes are required on this.

@UziTech UziTech merged commit c9fa515 into argos-ci:master Dec 13, 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.

2 participants