mirror of
				https://github.com/velopack/velopack.git
				synced 2025-10-25 15:19:22 +00:00 
			
		
		
		
	Add retry to legacy tests
This commit is contained in:
		| @@ -505,8 +505,9 @@ public class WindowsPackTests | |||||||
|         using var logger = _output.BuildLoggerFor<WindowsPackTests>(); |         using var logger = _output.BuildLoggerFor<WindowsPackTests>(); | ||||||
| 
 | 
 | ||||||
|         var rootDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "LegacyTestApp"); |         var rootDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "LegacyTestApp"); | ||||||
|         if (Directory.Exists(rootDir)) |         if (Directory.Exists(rootDir)) { | ||||||
|             Utility.DeleteFileOrDirectoryHard(rootDir); |             Utility.Retry(() => Utility.DeleteFileOrDirectoryHard(rootDir), 10, 1000); | ||||||
|  |         } | ||||||
| 
 | 
 | ||||||
|         var setup = PathHelper.GetFixture(fixture); |         var setup = PathHelper.GetFixture(fixture); | ||||||
|         var p = Process.Start(setup); |         var p = Process.Start(setup); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user