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

Add 5m timeout to page.WaitForRequest #1153

Merged
merged 2 commits into from
Nov 1, 2023
Merged

Conversation

kbarlowgw
Copy link
Contributor

I didn't see an appropriate place to add/update a unit test for this but I have been using it locally and it fixes the issue. Doesn't seem like an external configuration flag is required but may be if users continue to have issues.

@codecov-commenter
Copy link

codecov-commenter commented Oct 27, 2023

Codecov Report

Merging #1153 (915af83) into master (d088a19) will increase coverage by 0.05%.
The diff coverage is 80.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff             @@
##           master    #1153      +/-   ##
==========================================
+ Coverage   39.06%   39.11%   +0.05%     
==========================================
  Files          53       53              
  Lines        7966     7973       +7     
==========================================
+ Hits         3112     3119       +7     
  Misses       4440     4440              
  Partials      414      414              
Flag Coverage Δ
unittests 39.11% <80.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
pkg/provider/browser/browser.go 48.78% <80.00%> (+4.78%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@mapkon
Copy link
Member

mapkon commented Oct 27, 2023

@kbarlowgw How about browser_test.go?

I think you need find a way for this path playwright.PageWaitForRequestOptions{Timeout: &timeout} to be exercised so that test coverage is not affected.

@kbarlowgw
Copy link
Contributor Author

kbarlowgw commented Oct 31, 2023 via email

@alediaferia
Copy link

Any chance this could be made configurable via e.g. command line switch?

@kbarlowgw
Copy link
Contributor Author

kbarlowgw commented Oct 31, 2023 via email

@kbarlowgw
Copy link
Contributor Author

kbarlowgw commented Nov 1, 2023 via email

@mapkon mapkon merged commit 7cc41b5 into Versent:master Nov 1, 2023
8 checks passed
@kbarlowgw
Copy link
Contributor Author

kbarlowgw commented Nov 1, 2023 via email

@dkimdon
Copy link

dkimdon commented Nov 28, 2023

This change works great for me. What needs to happen to get this in the next release?

@mapkon
Copy link
Member

mapkon commented Nov 28, 2023

I just need to cut a release. I am looking to a window to do that

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.

5 participants