Skip to content

Commit ad94b42

Browse files
committed
More i/o exception proofing in tests
1 parent ecaecd3 commit ad94b42

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/NerdBank.GitVersioning.Tests/RepoTestBase.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,14 @@ protected virtual void Dispose(bool disposing)
4444
if (disposing)
4545
{
4646
this.Repo?.Dispose();
47-
TestUtilities.DeleteDirectory(this.RepoPath);
47+
try
48+
{
49+
TestUtilities.DeleteDirectory(this.RepoPath);
50+
}
51+
catch (IOException)
52+
{
53+
// This happens in AppVeyor a lot.
54+
}
4855
}
4956
}
5057

0 commit comments

Comments
 (0)