mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Copy update.exe in unit test instead of unit test check
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user