Copy update.exe in unit test instead of unit test check

This commit is contained in:
Caelan Sayler
2024-01-01 14:13:28 +00:00
parent af7dbbdef3
commit a3c5d1cd87
2 changed files with 6 additions and 2 deletions

View File

@@ -190,8 +190,12 @@ namespace Velopack.Tests
var basePkgPath = Path.Combine(packagesDir, basePkg.OriginalFilename);
File.Copy(basePkgFixturePath, basePkgPath);
var updateExe = PathHelper.GetRustAsset("update.exe");
var copiedExe = Path.Combine(packagesDir, "update.exe");
File.Copy(updateExe, copiedExe);
var locator = new TestVelopackLocator(id, fromVersion,
packagesDir, null, null, PathHelper.GetRustAsset("update.exe"), logger);
packagesDir, null, null, copiedExe, logger);
var um = new UpdateManager(source, logger, locator);
var info = await um.CheckForUpdatesAsync();