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

Restart WebDriver on failure #4267

Merged
merged 1 commit into from
Nov 14, 2024
Merged

Restart WebDriver on failure #4267

merged 1 commit into from
Nov 14, 2024

Conversation

daxpedda
Copy link
Collaborator

Currently, if starting the WebDriver process fails, the test runner simply spends its remaining timeout period trying to connect to the failed WebDriver process, which obviously doesn't work.

Instead this PR changes the behavior to continuously check if the WebDriver process didn't fail and only then wait until a connection is established. The timeout period remains 5 seconds in total.

I've tested this quite extensively now with web-time and I only got one unrelated failure. So this is a huge improvement from before, where almost every single CI run has failed.

Copy link
Contributor

@RunDevelopment RunDevelopment left a comment

Choose a reason for hiding this comment

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

LGTM!

@daxpedda daxpedda merged commit 539ea43 into rustwasm:main Nov 14, 2024
41 checks passed
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