Skip to content
Merged
Prev Previous commit
Next Next commit
Clean temp directory before running tests to fix build on Azure pipel…
…ines
  • Loading branch information
GeertvanHorrik committed Aug 7, 2019
commit 72cedf0feda28a39edcd5ae906f0319dc69f7b98
5 changes: 4 additions & 1 deletion src/GitVersionCore.Tests/DynamicRepositoryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@ public void CreateTemporaryRepository()
{
// Note: we can't use guid because paths will be too long
workDirectory = Path.Combine(Path.GetTempPath(), "GV");

// Clean directory upfront, some build agents are having troubles
Directory.Delete(workDirectory, true);
}


[OneTimeTearDown]
public void Cleanup()
{
Directory.Delete(workDirectory, true);

}

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