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

Some minor test baseline fixes #25424

Merged
merged 1 commit into from
Aug 4, 2021
Merged

Some minor test baseline fixes #25424

merged 1 commit into from
Aug 4, 2021

Conversation

roji
Copy link
Member

@roji roji commented Aug 4, 2021

No description provided.

@roji roji requested review from smitpatel and maumar August 4, 2021 13:33
@@ -106,7 +110,10 @@ public void AssertBaseline(string[] expected, bool assertOrder = true)

var contents = testInfo + newBaseLine + FileNewLine + "--------------------" + FileNewLine;

File.AppendAllText(logFile, contents);
lock (_queryBaselineFileLock)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Windows locks files by default, but other platforms don't, so concurrent tests could step over each other here

@roji roji merged commit 85ac269 into main Aug 4, 2021
@roji roji deleted the BaselineStuff branch August 4, 2021 23:50
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.

2 participants