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(launcher): launcher.launch() should pass 'timeout' option #5180

Closed
wants to merge 3 commits into from
Closed

fix(launcher): launcher.launch() should pass 'timeout' option #5180

wants to merge 3 commits into from

Conversation

ishmal
Copy link

@ishmal ishmal commented Nov 18, 2019

Addresses #4782

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@ishmal ishmal changed the title fix(Launcher): launcher.launch() should pass 'timeout' option to browser.waitForTimeout fix(Launcher): launcher.launch() should pass 'timeout' option Nov 18, 2019
@ishmal
Copy link
Author

ishmal commented Nov 18, 2019

@googlebot I fixed it.

@googlebot
Copy link

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@bobpearson
Copy link
Contributor

@googlebot I consent.

@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@ishmal ishmal changed the title fix(Launcher): launcher.launch() should pass 'timeout' option fix(launcher): launcher.launch() should pass 'timeout' option Nov 18, 2019
const originalProto = Browser.prototype.waitForTarget;
let resTimeout = 0;
// function() because we want Browser's 'this'
Browser.prototype.waitForTarget = async function(predicate, options) {
Copy link
Contributor

Choose a reason for hiding this comment

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

The pattern we use to test timeout is setting the timeout to 1 and expecting to fail. See

Copy link
Contributor

@jschfflr jschfflr left a comment

Choose a reason for hiding this comment

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

@ishmal Thanks for your contribution! Could you address @kblok's comment and resolve the merge conflicts? Happy to get this landed :)

@jschfflr
Copy link
Contributor

Closing this in favor of #7596.

@jschfflr jschfflr closed this Sep 23, 2021
jschfflr added a commit that referenced this pull request Sep 27, 2021
…7596)

Co-authored-by: Bob Jamison <bob.jamison@pearson.com>
This was referenced May 30, 2022
This was referenced May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants