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>();
|
||||
|
||||
var rootDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "LegacyTestApp");
|
||||
if (Directory.Exists(rootDir))
|
||||
Utility.DeleteFileOrDirectoryHard(rootDir);
|
||||
if (Directory.Exists(rootDir)) {
|
||||
Utility.Retry(() => Utility.DeleteFileOrDirectoryHard(rootDir), 10, 1000);
|
||||
}
|
||||
|
||||
var setup = PathHelper.GetFixture(fixture);
|
||||
var p = Process.Start(setup);
|
||||
|
||||
Reference in New Issue
Block a user