mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
fixed broken test.
This commit is contained in:
parent
7ac6d9c1f4
commit
c88b5ee946
@ -103,10 +103,8 @@ public void should_start_update_client()
|
||||
{
|
||||
Subject.Execute(new ApplicationUpdateCommand());
|
||||
|
||||
Mocker.GetMock<IProcessProvider>().Verify(
|
||||
c => c.Start(It.Is<ProcessStartInfo>(p =>
|
||||
!string.IsNullOrWhiteSpace(p.FileName) &&
|
||||
p.Arguments == "12")));
|
||||
Mocker.GetMock<IProcessProvider>()
|
||||
.Verify(c => c.ShellExecute(It.IsAny<string>(), "12", null, null), Times.Once());
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using NLog;
|
||||
using NzbDrone.Common;
|
||||
@ -71,7 +70,7 @@ private void InstallUpdate(UpdatePackage updatePackage)
|
||||
_diskProvider.MoveFolder(_appFolderInfo.GetUpdateClientFolder(),
|
||||
updateSandboxFolder);
|
||||
|
||||
_logger.Info("Starting update client");
|
||||
_logger.Info("Starting update client {0}", _appFolderInfo.GetUpdateClientExePath());
|
||||
|
||||
var process = _processProvider.ShellExecute(_appFolderInfo.GetUpdateClientExePath(), _processProvider.GetCurrentProcess().Id.ToString());
|
||||
|
||||
@ -85,4 +84,4 @@ private void InstallUpdate(UpdatePackage updatePackage)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user