Skip to content

Commit

Permalink
Dispose TempRoot (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmat committed Feb 17, 2020
1 parent f17578b commit a7754c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Microsoft.Build.Tasks.Git.UnitTests/GitDataTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ namespace Microsoft.Build.Tasks.Git.UnitTests
{
public class GitDataTests
{
public readonly TempRoot Temp = new TempRoot();
private static readonly char s = Path.DirectorySeparatorChar;

[Fact]
public void MinimalGitData()
{
var repoDir = Temp.CreateDirectory();
using var temp = new TempRoot();
var repoDir = temp.CreateDirectory();

var gitDir = repoDir.CreateDirectory(".git");
gitDir.CreateFile("HEAD").WriteAllText("1111111111111111111111111111111111111111");
Expand Down

0 comments on commit a7754c9

Please sign in to comment.