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

refactor(transport): handle transport error, no more log.Fatal #395

Merged
merged 6 commits into from
Dec 19, 2023

Conversation

canstand
Copy link
Collaborator

After refactoring the transport, the unexpected exit of playwright cli will not cause hang or the main program to exit directly.

@canstand canstand marked this pull request as ready for review December 13, 2023 13:31
}
timeout := b.timeoutSettings.Timeout()
select {
case <-time.After(time.Duration(timeout) * time.Millisecond):
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

My bad, what really works here is the previous if err != nil. removed with 99c5b11

@canstand canstand merged commit 968ab19 into playwright-community:main Dec 19, 2023
13 checks passed
@canstand canstand deleted the refac-1 branch December 19, 2023 02:46
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.

None yet

2 participants