Skip to content

Commit

Permalink
fix: file create locking file for api approval
Browse files Browse the repository at this point in the history
  • Loading branch information
glennawatson committed Aug 5, 2019
1 parent 0df02ef commit 465bbd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ReactiveUI.Validation.Tests/API/ApiApprovalTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ private static void CheckApproval(Assembly assembly, [CallerMemberName]string me

if (!File.Exists(receivedFileName))
{
File.Create(receivedFileName);
File.Create(receivedFileName).Close();
}

if (!File.Exists(approvedFileName))
{
File.Create(approvedFileName);
File.Create(approvedFileName).Close();
}

var approvedPublicApi = File.ReadAllText(approvedFileName);
Expand Down

0 comments on commit 465bbd6

Please sign in to comment.