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: make sure there is a check for targets when timeout=0 #8765

Merged
merged 1 commit into from Aug 10, 2022

Conversation

OrKoN
Copy link
Collaborator

@OrKoN OrKoN commented Aug 10, 2022

Previously, if timeout is falsy, the targets would only
be checked if a browser-level event fires which lead to
a race: if the events arrived before waiting for a target,
the promise would never resolve.

Fixes #8763

@OrKoN OrKoN requested a review from jrandolf August 10, 2022 05:44
@OrKoN OrKoN enabled auto-merge (squash) August 10, 2022 06:06
Previously, if timeout is falsy, the targets would only
be checked if a browser-level event fires which lead to
a race: if the events arrived before waiting for a target,
the promise would never resolve.

Fixes #8763
@OrKoN OrKoN merged commit c23cdb7 into main Aug 10, 2022
@OrKoN OrKoN deleted the fix-zero-timeout branch August 10, 2022 13:50
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.

[Bug]: puppeteer.launch not resolved when timeout is 0 and headless: false
2 participants