Skip to content

Commit 8d49c7b

Browse files
asbjornuJakeGinnivan
authored andcommitted
Don't crash if cleanup fails
1 parent 3b25539 commit 8d49c7b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/GitVersionTask.Tests/InvalidFileCheckerTests.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@ public void CreateTemporaryProject()
2525
[TearDown]
2626
public void Cleanup()
2727
{
28-
Directory.Delete(projectDirectory, true);
28+
try
29+
{
30+
Directory.Delete(projectDirectory, true);
31+
}
32+
catch (Exception exception)
33+
{
34+
Console.WriteLine(exception);
35+
}
2936
}
3037

3138
[Test]

0 commit comments

Comments
 (0)