-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Increase BlazorWebView test timeouts #4543
Conversation
Azure Pipelines successfully started running 2 pipeline(s). |
@@ -9,8 +9,8 @@ namespace Microsoft.Maui.MauiBlazorWebView.DeviceTests | |||
{ | |||
public static class WebViewHelpers | |||
{ | |||
const int MaxWaitTimes = 10; | |||
const int WaitTimeInMS = 200; | |||
const int MaxWaitTimes = 30; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we use TimeSpan
instead of these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const int MaxWaitTimes = 30; | |
static readonly TimeSpan MaxWaitTimes = TimeSpan.FromSeconds(30); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many things about how these tests are written could be refactored and cleaned up. The way the timeout is represented is one of the least of the changes :) I know they were originally written only as a proof-of-concept that such tests are possible and can be made to run in CI.
So I'd rather wait until we make the test infrastructure nice here before being concerned with such a detail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No feelings of mine can be hurt regarding this 😄
I went ahead and merged so that by morning time we can hopefully see if reliability has gone up. Thank you @SteveSandersonMS ! |
Increases BlazorWebView test timeouts to 7.5s. Previously they were 500ms (Windows) or 2s (Android/iOS). Hopefully this will mitigate test flakiness, but we have to try it to see.