-
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
[Testing] Fix randomly failing tests on CI #26120
Conversation
@@ -104,16 +104,17 @@ public override void Reset() | |||
App.ResetApp(); | |||
} | |||
|
|||
public void VerifyScreenshot(string? name = null) | |||
public void VerifyScreenshot(string? name = null, TimeSpan? retryDelay = null) |
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.
Allow to set the retry waiting time verifying snapshots.
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
VerifyScreenshot(); | ||
|
||
Thread.Sleep(1000); | ||
VerifyScreenshot(retryDelay: TimeSpan.FromSeconds(2)); |
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.
I think we just build this retry into VertifyScreenshot by default for Android so we don't have to pass it
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.
Yeah, just increase the waiting time between snapshots.
@@ -1,4 +1,4 @@ | |||
#if ANDROID | |||
#if ANDROID && TEST_FAILS_ON_ANDROID // Related issue: https://github.com/dotnet/maui/issues/26159 |
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.
Created a new related issue
Description of Change
Changes to fix randomly failing tests on CI. The failing tests are: