Skip to content

Commit 72cedf0

Browse files
Clean temp directory before running tests to fix build on Azure pipelines
1 parent 857643f commit 72cedf0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/GitVersionCore.Tests/DynamicRepositoryTests.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,16 @@ public void CreateTemporaryRepository()
1515
{
1616
// Note: we can't use guid because paths will be too long
1717
workDirectory = Path.Combine(Path.GetTempPath(), "GV");
18+
19+
// Clean directory upfront, some build agents are having troubles
20+
Directory.Delete(workDirectory, true);
1821
}
1922

2023

2124
[OneTimeTearDown]
2225
public void Cleanup()
2326
{
24-
Directory.Delete(workDirectory, true);
27+
2528
}
2629

2730
//[Ignore("These tests are slow and fail on the second run in Test Explorer and need to be re-written")]

0 commit comments

Comments
 (0)