-
Notifications
You must be signed in to change notification settings - Fork 4.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
Fix a Race in Installer Test Infrastructure #38143
Conversation
StaticHostTest used the StaticHostApp (which is effectively a copy of StandaloneApp) as a work-around for synchronization problems. Remove this work-around.
Tagging subscribers to this area: @vitek-karas, @swaroop-sridhar |
@@ -67,25 +69,26 @@ public virtual void Dispose() | |||
_copies.Clear(); | |||
} | |||
|
|||
private static readonly object pathCountLock = new object(); |
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.
private static readonly object pathCountLock = new object(); | |
private static readonly object _pathCountLock = new object(); |
Add locking around GetNewTestArtifactPath() so that multiple threads attempting to create new copies of a TextFixture don't collide and work on the same path.
Hello @swaroop-sridhar! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
This PR contains the following changes:
Fixes #33675
Fixes #38013