Fix failing test on Pipelines. Test only fails on Pipelines.#2141
Merged
jfversluis merged 3 commits intoAug 21, 2024
Conversation
Added attributes to ParentWindowTests to control test execution order:
- Disabled parallel execution with [CollectionDefinition(nameof(ParentWindowTests), DisableParallelization = true)]
- Ensured sequential execution with [Collection("Sequential")]
These changes help avoid issues related to shared state or resources.
Member
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Member
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
jfversluis
approved these changes
Aug 21, 2024
Contributor
|
Just to document against the PR. According to the xUnit.net documentation Configuration Files, the test project needs to copy the |
Collaborator
|
Thanks James!! I hope this does the trick! It's been super annoying having to manually re-run our pipeline each time 😅 |
Contributor
|
We had a great community effort on the Discord server, lead by James @ne0rrmatrix. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
Fix failing test on Azure pipelines. it fails about 8 percent of the time. It has zero percent failure on my local machines. Passes on Mac mini and two different windows PC's. I have no idea why it only fails a small percentage of the time and only on Azure pipelines.
PR Checklist
approved(bug) orChampioned(feature/proposal)mainat time of PR